be80be
Well-Known Member
Ok it's been a bit but I figured Id mess a bit with asm on this chip
There is no TRISC or TRISB in the inc file. It list them bit by bit like this
TRISC0 TRISC1 and so on.
But I guess this is the only way to load the TRIS with I/0 setting
Is that right.
Then the next thing I did the same code in xc8 and it's using 16 more cycles
to toggle a led.
with a bunch of FSR gunk thats not needed
There is no TRISC or TRISB in the inc file. It list them bit by bit like this
TRISC0 TRISC1 and so on.
But I guess this is the only way to load the TRIS with I/0 setting
Code:
movlw B'00000001'
tris portc
Then the next thing I did the same code in xc8 and it's using 16 more cycles
to toggle a led.
with a bunch of FSR gunk thats not needed