Member | Action | Date |
---|---|---|
![]() |
Replied
to
ORL or MOV
ok, good
Show more
|
Oct 30 2017, 11:56 AM |
![]() |
Replied
to
C8051F330 Temperature sensor example
pls send me the code to admin@klugingenieria.net txs |
Oct 28 2017, 3:34 PM |
![]() |
Replied
to
ORL or MOV
ok thanks, but where that came from? i cannot find that explicit information in any of the programming manuals |
Oct 28 2017, 2:27 PM |
![]() |
Posted
ORL or MOV on
Forum
HELLO GUYS, FINALLY BACK!!!!!!!!!!! Trying to resume my microcontroller proyects, i have a question about P0MDOUT register wich has to have a value to operate as push-pull. The fact is that in the example code:
P0MDOUT |= 0x04; // enable LED as a push-pull output (program in C)
orl P0MDOUT, #04h ; make LED pin output push-pull (program y assembler)
from keil webpage:
P1 |= 0x40; // Generate ORL P1, 0x40 Why ORL instead of simply MOV?, according with C8051F330/1-DS11 page 117 the Port Output Mode registers (PnMDOUT) should be configured or SET, i can understand that to do this i only have yo assing a number to them. Any explanation for this?
BEST REGARDS |
Oct 28 2017, 2:26 PM |