PDA

View Full Version : PIC10F32x Configuration Settings



Zebryk
- 21st March 2015, 16:55
Hello,

Just setting up the new PIC10F32x Development Board which is both a really extreme chip and a really nice experimenter platform.

Only $12!

77417742

However, it appears to need different configuration settings from the less sophisticated 10F2xx series. (Uses RA0/RA1/RA2/RA3 parlance instead of GPIO.0/GPIO.1/GPIO.2/GPIO.4. Likewise not sure of how to set the usual...

GPIO = %00000000 ' GPIO All OFF
TRISIO = %00001001 ' Inputs = 1, Outputs = 0
OSCCAL.0 = 0 ' Disable INTOSC/4 Out on GP2 (Enable I/O on GP2)
OPTION_REG.5 = 0 ' Disable TRIS override on T0CKI (Enable I/O on GP2)
OPTION_REG.6 = 1 ' Disable Weak Pull-Ups (GP0, GP1, GP3)
OPTION_REG.7 = 0 ' Enable Wake-Up on Pin Change (GPO, GP1, GP3)

I have surfed the net for a PICBASIC PRO example to clarify but have found none.

There used to be INC files that showed syntax examples but have not located anything for this new part.

The data sheet does detail the myriad of new options but I'm just stuck on the basics.

(My immediate objective is just make the LEDs and the pushbutton do something.)

7743

The data sheet was too big to attach so here is the link:
http://ww1.microchip.com/downloads/en/DeviceDoc/41585A.pdf

Thanks,

Zebryk
- 21st March 2015, 17:23
Just did a search on the melabls forum:

http://support.melabs.com/threads/351-PBP3-and-PIC10F32x?highlight=10f322

RATS!

Zebryk
- 23rd March 2015, 13:52
Charles Leo just confirmed the bad news:-(

(I think I have been down this road before.)