Help - Timing errrors, PSU errors & EB-005 errors

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

Moderators: Benj, Mods

Post Reply
Lord Grezington
Flowcode V4 User
Posts: 288
Joined: Wed Nov 02, 2011 11:15 pm
Has thanked: 29 times
Been thanked: 30 times

Help - Timing errrors, PSU errors & EB-005 errors

Post by Lord Grezington »

I am new here, and I have come accros some teething problems.

Firstly, I am using EB006 Multiprogrammer, after finally getting the PPP working (and getting my chip to stay wedged onto the board - needed to invest in a ZIF socket) I have managed to ID the chip, which is great. I can even write some small charts which work great, but I then get problems with the timing. I think I must have a new version of the EB-006 (-00-8) as I cant find the J29, I do assume this is just the jumper to go from USB to PSU. All works fine when on USB, but when I change to PSU and put the 14V into the 4 way terminal block, I can download the same program as before (from USB) and the Chip will no longer work. I have attempted changing the jumpers from J12 J13 J14 but still no luck. also the jumpers J18 J19. I also ensure the XTAL switch is kept to the right (centre of the board). I dont seem to have all the other J** stated on the last published EB 006 PDF so I am not 100% sure I have all the setting right.

The second issue I am seeing is (only in USB mode) the XTAL switch always to the right. The only working setting on the config screen for the oscillator is the HS PPL, as the EB-006 come with a default 19...Mhz Xtal this is multipling the frequency up to ~80 MHz, twice as fast as my pic can handle (18F4420 40Mhz with PPL). All other settings do not run my program (even a simple on. wait one sec, off, wait on sec loop). The clock speed setting is correct @ 19... Mhz in the project options menu. Is HS not the correct setting to use for the oscilator? if yes, why does it not rum my program? And also, out of interest, when I use the HS PPL with the 19...Mhz crystal is the output always 1/3 of the time programed?

Finaly, I have a feeling this last issue is to do with the timing isses of the second issue. I have a EB-005 LCD board, none of the test programs run as the data sheets say. Do I need to get the timing correct? (from what I remember timing is critical for serial data transfer). What J** settings do I need with the EB-006-00-8 board. I have been linking up a 14V power supply to the EB-005 along as into the EB-006. I think this may be going back to my original issues with PSU settings.

Thank all for you help in advance

Grez

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

Re: Help - Timing errrors, PSU errors & EB-005 errors

Post by Benj »

Hello Grez,

I will get the v8 of the EB006 datasheet put onto the web for you and it should be available from here shortly.

http://www.matrixmultimedia.com/lc_index.php?p=11

Have you tried creating a simple 1 second flasher program to test your clock speed settings etc? This is probably the best way to check you have everything setup correctly. When the delays on the hardware match 1 second you have everything correct. The HS settings should work well with the crystal, that is the setting I normally use. Maybe the PLL and non PLL settings have somehow become reversed. What version of Flowcode are you using?

Details of 1 second flasher are available from here.
http://www.matrixmultimedia.com/mmforum ... 677#p31677
I have been linking up a 14V power supply to the EB-005 along as into the EB-006.
In all likelihood you have blown your EB005 by connecting up 14V to it. The EB005 should never be powered at a voltage greater then 5V. For note when there is a +V on a E-block this means your system voltage eg 5V or 3.3V. If anything larger is required then we will specifically ask for it.

Lord Grezington
Flowcode V4 User
Posts: 288
Joined: Wed Nov 02, 2011 11:15 pm
Has thanked: 29 times
Been thanked: 30 times

Re: Help - Timing errrors, PSU errors & EB-005 errors

Post by Lord Grezington »

Hi Ben

Thanks for you help.

I now believe the EB-005 is blown as you mentioned, I will need to get a new one.

My timing issues have now somehow sorted itself out, I have no idea why.The HS setting is now ok, I think it may have something to do with the blown LCD being attached.

I am using version 4.3.7.63

Grez

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

Re: Help - Timing errrors, PSU errors & EB-005 errors

Post by Benj »

Hello,

Great glad there is some improvement and progress.

You can update to v4.5 if you wish by using the Help -> Check for updates menu in Flowcode.

Lord Grezington
Flowcode V4 User
Posts: 288
Joined: Wed Nov 02, 2011 11:15 pm
Has thanked: 29 times
Been thanked: 30 times

Re: Help - Timing errrors, PSU errors & EB-005 errors

Post by Lord Grezington »

Hi Ben

Finaly able to look into this again...

I have bought a new EB005 board, but still not working. I have connected a 5Vdc supply, and still nothing. I have attached my program, please can you look through the settings and ensure they are all ok?

The simulation works ok, but only the LED flashes and not the LCD once the program is downloaded onto the chip - the LCD is connected to PORT B. Timing is good (unlike last time).

I have downloaded the new EB006-8, I cant find "Set Jumpers J11, J16 and J17 to ‘I/O PORT’" as stated for testing, where about are they on the board?

Thank in advance for you help

Grez
Attachments
Test1.fcf
(6.5 KiB) Downloaded 251 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Help - Timing errrors, PSU errors & EB-005 errors

Post by medelec35 »

Hi Grez,
Just looked at your flowchart, and you have got Low Voltage Programming (LVP) enabled.
Since that reserves port B5 (PGM) for Low Voltage Programming, that pin is not available for any other purpose.
So my advice is to Disable Low Voltage Programming so you can use port B0 to B5 for your LCD.

Martin
Martin

Lord Grezington
Flowcode V4 User
Posts: 288
Joined: Wed Nov 02, 2011 11:15 pm
Has thanked: 29 times
Been thanked: 30 times

Re: Help - Timing errrors, PSU errors & EB-005 errors

Post by Lord Grezington »

Martin,

Thank you, you hit the nail on the head!!!

Grez

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Help - Timing errrors, PSU errors & EB-005 errors

Post by medelec35 »

That's great!,
Glad you have got LCD to work now.
Thanks for letting us know :)

Martin
Martin

Post Reply