View previous topic :: View next topic |
Author |
Message |
bauche
Joined: 06 Nov 2010 Posts: 22 Location: montreal qc
|
16f628a use a6 as output |
Posted: Sun Nov 21, 2010 11:56 am |
|
|
Hi I'm using int osc in 16f628a. I want to use A6 for led (output).
Physically my circuit is ok. When I powered up, my led light right away. If I do reset, MCLR led goes off. When unpress mclr, goes on and stays on all time. I tried two 16F628a - same problem. I tried output_low(LED1) in my program...same thing. Do I have to define A6 as output?
Thanks for help..again... |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Sun Nov 21, 2010 1:03 pm |
|
|
Please show us your 'fuses' line.....
Hint...
In order to use A6 as an I/O pin it must be configured using the fuses options... |
|
|
bauche
Joined: 06 Nov 2010 Posts: 22 Location: montreal qc
|
|
Posted: Sun Nov 21, 2010 1:16 pm |
|
|
#FUSES NOWDT,INTRC,NOPUT,NOPROTECT |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19551
|
|
Posted: Sun Nov 21, 2010 1:32 pm |
|
|
INTRC_IO
Guess what the 'IO' stands for.....
Best Wishes |
|
|
bauche
Joined: 06 Nov 2010 Posts: 22 Location: montreal qc
|
|
Posted: Sun Nov 21, 2010 1:56 pm |
|
|
WORKING!!!!
Thanks a lot!!!!! |
|
|
|