pic 12f675 code (assemble language)

Status
Not open for further replies.

srikanthind

New Member
Hi everyone,

Could you someone help me regarding this please? I wrote small progrma using pic 12f675. When I am checking 'watch' the GPIO inputs are not changing according to the program. Are there any specifications need to be given for GPIO port.

thank you
 
You need to make the port pins outputs... The TRISIO register controls the direction of each pin... A "1" means input and a "0" means output.... so to use ALL the pins as output use TRISIO = 0... Also turn off any ADC pin using the ANSEL register..
 
Thank you Ian, I didn't clear the ANSEL register earlier. It's working now. Thank you very much.

You need to make the port pins outputs... The TRISIO register controls the direction of each pin... A "1" means input and a "0" means output.... so to use ALL the pins as output use TRISIO = 0... Also turn off any ADC pin using the ANSEL register..
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…