PIC18F26K22 WDT CONFIG2H Config Register

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Jon Chandler
Registered User
Registered User
Posts: 167
Joined: Mon Mar 10, 2008 8:20 am
Location: Seattle, WA USA
Contact:

PIC18F26K22 WDT CONFIG2H Config Register

Post by Jon Chandler » Tue Aug 18, 2020 11:30 pm

NEVERMIND. I was being stupid - first time for everything you know!

I'm working on a very low power app, and I'd like to use the WDT to wake from sleep periodically to acquire a measurement and then go back to sleep. I'm using the 18F26k22 micro. It appears that the WDT post-scaler gives me the time intervals I'd like.

The data sheet say the WDT post-scaler and config is in register CONFIG2H. The 18F26K22 doesn't contain this register. Is it named something different? Can I access it directly?

I updated Swordfish to the most recent version a few days ago, so I believe I have the current files.

Thanks,

Jon
Last edited by Jon Chandler on Wed Aug 19, 2020 12:04 am, edited 1 time in total.
Jon

Check out the TAP-28 PIC Application board at http://www.clever4hire.com/throwawaypic/

Jon Chandler
Registered User
Registered User
Posts: 167
Joined: Mon Mar 10, 2008 8:20 am
Location: Seattle, WA USA
Contact:

Re: PIC18F26K22 WDT CONFIG2H Config Register

Post by Jon Chandler » Wed Aug 19, 2020 12:03 am

Nevermind. Oops. Something else is going on in my code that made me think this wasn't working.
Jon

Check out the TAP-28 PIC Application board at http://www.clever4hire.com/throwawaypic/

Post Reply