Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

error 302

Status
Not open for further replies.
so really its a case of putting in the correct __config directives ? and setting the inc file to the F88
If you're confused about config bits, start Windows Explorer (not Internet Explorer) and navigate to (typically) C:\Program Files\Microchip\MPASM Suite and open (for the F88) P16F88.INC. Scroll right to the bottom and you'll find the "official" equates for all the available config bit settings. These are the acceptable entries for the config line in the assembler. With this info and Chapter 15 of the datasheet to give you more detail, you can set them with ease.

As you've already found out, for the 16F88 a typical config line would look like this:
Code:
	__config _CONFIG1, _WDT_OFF & _INTRC_IO & _MCLR_ON & _LVP_OFF
meaning
Watchdog Timer - Off
Internal RC Oscillator; port I/O function on both RA6 pin and RA7 pin
MCLR - Enabled
Low Voltage Programming - Off
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top