Hi Skimask,
I did change over from PM to MPASM as I was doing other stuff with 18F chips, however, the only config change I made to the 16F737.INC file was to set clock to INTRC with IO. This is the same config I had with PM:
' Device fuses & registers (Assumes PM assembler)
@ DEVICE INTRC_OSC,MCLR_ON,WDT_OFF
Fuses:
Osc - INTRC as IO
WDT - Off
PUT - Off
RE3/MCLR = MCLR
BODEN - Enabled
BODENV - 2.0V
Backbug - disabled
CCP2MUX - RC1
CP - Off
BORSEN - enabled
IESO - enabled
FCMEN - enabled
Device (DVD simulator - don't ask why) is powered off USB port of PC, with extra cap for filtering - don't think it's a voltage thing.
Cheers
Phil.
I don't see anything turning off the ANALOG function of PortA.1 and switching it over to digital...
Actually, yes I do see something turning off SOME analog ports, but not enough...
Last edited by skimask; - 9th March 2008 at 08:01. Reason: Whoops!
Hi Skimask,
Changed ADCON1 to $f, but no joy (if that's what you meant).
Phil.
Skimask,
Also changed ADCON0 to 0 (just in case),
Serout2 works OK (same pin) but that's not the point!
Sanity rapidly departing, need to go away and have a think.
Thanks for your help - another brain always sees something different!
Cheers,
Phil.
If SEROUT2 works, and DEBUG doesn't work, it's gotta be the way you config'd DEBUG
Check your upper/lower case...ALL CAPS on the DEFINE's
Check your modes...
Post your codes...
(hey that rhymes!!!)
NOTE: Changing ADCON0 isn't going to do anything to the pin. It's only going to shut off the A/D module.
Last edited by skimask; - 9th March 2008 at 09:33.
I think I see your problem back in the 1st post:
If this is the code you're using...what's wrong with this picture?Code:DEFINE OSC 8 ' Tell PicBASIC define DEBUG_REG PORTA define DEBUG_Bit 1 DEFINE DEBUG_BAUD 9600 DEFINE DEBUG_MODE 1
The problem is very subtle. I missed it a dozen times. Check page 31 of the manual.
Last edited by skimask; - 9th March 2008 at 09:37.
Bookmarks