Settings for 16F684

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Collimare
Posts: 19
Joined: Thu Mar 08, 2012 9:34 pm
Been thanked: 2 times
Contact:

Settings for 16F684

Postby Collimare » Tue May 29, 2012 11:43 pm

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

User avatar
Benj
Matrix Staff
Posts: 14363
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4444 times
Been thanked: 4144 times
Contact:

Re: Settings for 16F684

Postby Benj » Wed May 30, 2012 9:35 am

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.

Collimare
Posts: 19
Joined: Thu Mar 08, 2012 9:34 pm
Been thanked: 2 times
Contact:

Re: Settings for 16F684

Postby Collimare » Thu May 31, 2012 5:15 pm

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

User avatar
Benj
Matrix Staff
Posts: 14363
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4444 times
Been thanked: 4144 times
Contact:

Re: Settings for 16F684

Postby Benj » Fri Jun 01, 2012 12:31 pm

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.

Collimare
Posts: 19
Joined: Thu Mar 08, 2012 9:34 pm
Been thanked: 2 times
Contact:

Re: Settings for 16F684

Postby Collimare » Fri Jun 01, 2012 9:47 pm

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

Collimare
Posts: 19
Joined: Thu Mar 08, 2012 9:34 pm
Been thanked: 2 times
Contact:

Re: Settings for 16F684

Postby Collimare » Tue Jun 05, 2012 9:32 pm

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

User avatar
Benj
Matrix Staff
Posts: 14363
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4444 times
Been thanked: 4144 times
Contact:

Re: Settings for 16F684

Postby Benj » Thu Jun 07, 2012 10:10 am

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.