Hi
all,
working on a
PIC16F628, I try to configure its I/O with pull-ups on B port and set Input or
output direction on port A and B...
output_float(pin_A1);
output_float(pin_A2);
output_float(pin_A3);
output_float(pin_A5);
output_float(pin_A6);
output_float(pin_A7);
output_float(pin_B0);
output_float(pin_B6);
output_float(pin_B7);
output_float(pin_A2);
output_float(pin_A3);
output_float(pin_A5);
output_float(pin_A6);
output_float(pin_A7);
output_float(pin_B0);
output_float(pin_B6);
output_float(pin_B7);
gives
nothing...
No mre than
:
#use
fixed_io(a_outputs=PIN_A4)
#use fixed_io(b_outputs=PIN_B1,PIN_B2,PIN_B3,PIN_B4,PIN_B5)
#use fixed_io(b_outputs=PIN_B1,PIN_B2,PIN_B3,PIN_B4,PIN_B5)
#USE
STANDARD_IO(B)
#USE STANDARD_IO(A)
#USE STANDARD_IO(A)
with
SET_TRIS_A( 0x10 ); // PORTA RA7-RA0 =
Out Out Out In Out Out Out Out
SET_TRIS_B( 0xC1 ); // PORTB RB7-RB0 = In In Out Out Out Out Out In
SET_TRIS_B( 0xC1 ); // PORTB RB7-RB0 = In In Out Out Out Out Out In
Can anyone
help to clearly define what needs to be done ????
By the way,
any pointers to good documentation or tuts for CCS would be great !!
The Help files is rather poor even if many exemples do well !!
The Help files is rather poor even if many exemples do well !!
Thank a lot
!
Vince