Page 1 of 1

Settings for 16F684

Posted: Tue May 29, 2012 11:43 pm
by Collimare
I have been using the HP-488-00-3 with the standard installed 16F88 to develop my code which has worked very well. I have changed over the code to use our actual target 16F684 which the simulation works fine and it compiles/programs the chip without error but it does not work in the development board. What are the settings under project options/configure the chip as well as the development board settings? Thanks, Howard

Re: Settings for 16F684

Posted: Wed May 30, 2012 9:35 am
by Benj
Hello,

Standard config settings are HS oscillator, Watchdog off, LVP off.

The settings for the HP488 are XTAL osc mode.

The 8/14 and 20 pin chips are a bit weird as they do not fit in as well as the other series of chips. Please refer to the datasheet for the HP488 or the EB006 to see the modified port pin out for these range of devices.

Re: Settings for 16F684

Posted: Thu May 31, 2012 5:15 pm
by Collimare
Hi Ben,

Thanks for the response. It still does not appear to be working and I am more than a bit disappointed to see that it is really not supported as the 16F88 where I could fully test the code in the target utilizing the on board switches and LEDs.

Is there a development platform that supports the 16F684 directly?

Thanks, Howard

Re: Settings for 16F684

Posted: Fri Jun 01, 2012 12:31 pm
by Benj
Hi Howard.

The 16F684 does work with the board and you should still be able to use the LED's and switches. Just be aware that a port pin may not actually be connected to the Switch/Led you think on the 8/14 and 20 pin devices.

How are you testing for a working device? Have you tried the 1 second flasher approach? If so please can you post up your Flowcode file or C/Asm Source file so we can have a look at your code and your settings.

Re: Settings for 16F684

Posted: Fri Jun 01, 2012 9:47 pm
by Collimare
Hi Ben,

I went ahead and hand built a target testing board for the 16F684 which is now working as I expected. So I now have a few new questions.

I have a 2 second programmed delay at startup for a switch hold program function but it is more like 10 seconds in the target. What do I need to do to have the program time match the actual target execute time?

I would like to program the new 16F684 target via the HP-488. I have the J22 external cable and remote interface module. What settings do I need to change in Flowcode and/or the HP-488 to program in-board on the new target?

I assume PGM is the same as VPP?

Thanks, Howard

Re: Settings for 16F684

Posted: Tue Jun 05, 2012 9:32 pm
by Collimare
I have the programming in the target working now.

I would still like help on:

I have a 2 second programmed delay at startup for a switch hold program function but it is more like 10 seconds in the target. What do I need to do to have the program time match the actual target execute time?

Thanks, Howard

Re: Settings for 16F684

Posted: Thu Jun 07, 2012 10:10 am
by Benj
Hello Howard,

What are you coding with? If your using Flowcode then you have to get two things right for delays to be correct on the hardware.

1) The Project clock speed.
2) The chip's configuration settings.

A simple 1 second flasher loop will allow you to see when you have everything setup correctly.