Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~807 People Reached
Favorite Forums
Favorite Tags

7 Posted Topics

Member Avatar for laguna92651

I am starting to write a assembly program for a mc68hc12. I will be reading a 8 bit signed number into PortA and outputting the results to 7 segment LED's, common anode. I will be using Port P to ouput the segments and PortCan to control the LED's displayed. I …

Member Avatar for chrisname
0
121
Member Avatar for laguna92651

I am trying to count the number of 1's in a sixteen bit word for MC68HC12. The only way I can think of is to use 16 BITA instructions, one for each bit location, then increment a counter. I suspect there is a more elegant way to do this. Could …

Member Avatar for wildgoose
0
97
Member Avatar for laguna92651

I am trying to understand how assembly is translated into machine language. I understand how to get the machine coding formats but I'm not sure how to calculate 'rr' in all cases. For the example example bra is 20 rr or 20 03, I know that the relative offset is …

0
66
Member Avatar for laguna92651

I am learning assembly on a MC68HC12. Can someone explain to me why the overflow flag, V=1, using the asr instruction on following binary number: %1111 0100 the asr shift would be; %1111 1010 V=1 another example %0000 0001 the asr shift would be; %0000 0000 why does V=1 I …

Member Avatar for wildgoose
0
283
Member Avatar for laguna92651

I'm new to assembly language and have written an instruction sequence for the MC68HC12 ,to input a string of characters using the SCI channel 0. The input character string, will be no more than 20 characters, and will be stored in memory when an EOT character is received. Port A …

0
72
Member Avatar for laguna92651

I'm writing a program to output a stair step waveform from VoutA. How do I tell PORTP to output 2 volts? [code]#include "d:\miniide\hc12.inc" org $1000 ldaa #$FF staa DDRP ; configure PORTP for output ldaa #$6F staa DDRCAN ; configure PCAN6..PCAN5 for output bclr PORTCAN,$20 ; select VOUTA output xx …

Member Avatar for laguna92651
0
86
Member Avatar for laguna92651

I am new to assembly programming. I am programming for the MC68HC12. I was given a program with the opcodes XDECI, SR, Xprnt etc. I can't find any of these in my text book for the MC68. Are they for another processor, when I try to compile in CodeWarrior every …

0
82

The End.