User manual
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
175
Actual voltage levels on MCU pins are relevant.
MODIFY Data is modied to set the RB0 bit:
WRITE PORTB is written with the modied data.
The output driver for RB0 turns on, and the
capacitor starts to charge:
The second line, PORTB.B1 = 1 will be decoded in this way:
READ PORTB is read:
STORE Because the capacitor is still charging, the
voltage at RB0 is still low and reads as a ‘0’
(since we are reading from the pins directly,
not from the PORTB register):
Actual voltage levels on MCU pins are relevant.
MODIFY Data is modied to set the bit:
WRITE PORTB is written with the new data. The
output driver for RB1 turns on, but the
driver for RB0 turns back off: