Calamar
Joined: 07 Sep 2003 Posts: 60 Location: Buenos Aires (Argentina)
|
16f628 Port A |
Posted: Fri Jul 25, 2003 12:19 pm |
|
|
Why I can't write in port A ??
#include <16f628.H>
#fuses INTRC_IO, NOLVP, NOWDT, PUT, BROWNOUT
#use delay(clock=4000000)
#USE STANDARD_IO(A)
#byte port_a = 5
main() {
int count;
setup_comparator(NC_NC_NC_NC);
set_tris_a(0);
do {
for(count = 0; count <=15; ++count)
output_a(count); // ********* can't write .... why?
// **********************************
delay_ms(1000);
} while (1);
}
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516364 _________________ Best Regards
Daniel H. Sagarra
La Plata (Argentina) |
|