[Flashforth-devel] Question to PortB
Brought to you by:
oh2aun
From: Thomas B. <bus...@gm...> - 2014-03-19 08:30:33
|
Hallo, Im a little bit confused about a very simple function. In the ff-tutorial (flash a LED) the PortB RB0 is set to an output with: $ff93 constant trisb 1 trisb mclr thats the bitmask 0000 0001 , but if I look in the datasheet of my PIC18F2620: Setting a TRISB bit (= 1) will make the corresponding PORTB pin an input (i.e., put the corresponding output driver in a high-impedance mode). Clearing a TRISB bit (= 0) will make the corresponding PORTB pin an output Thats confusing me, especially because the forth-program works. What is wrong in my mind? Bye Thomas |