|
UPD784938 Datasheet, PDF (205/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers | |||
|
◁ |
CHAPTER 7 REAL-TIME OUTPUT FUNCTION
<Examples of setting data in port 0 buffer registers>
⢠4-bit à 2-channel operation
MOV P0L, #05H ; Sets 0101B in P0L
MOV P0H, #0C0H ; Sets 1100B in P0H
⢠8-bit à 1-channel operation
MOV P0L, #0C5H
or
MOV P0H, #0C5H
; Sets 0101B in P0L and 1100B in P0H
The timing for transfer to the output latch can be determined by the following three sources:
⢠Interrupt from timer/event counter 1 (INTC10 or INTC11)
⢠INTP0 external interrupt
Preliminary Userâs Manual U13987EJ1V0UM00
205
|
▷ |