optocode.hex

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

Moderators: Benj, Mods

Post Reply
User avatar
goldwingers
Posts: 118
Joined: Wed Sep 06, 2006 1:22 pm
Location: London
Been thanked: 1 time
Contact:

optocode.hex

Post by goldwingers »

Hi guys,
I want to start testing the opto board, but the sample file does not appear toexist on the website,there is only a datasheet, can you send me the file..to
goldwingers@tiscali.co.uk

Cheers

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: optocode.hex

Post by Benj »

Hello

I have attached the test files.
Attachments
EB035-00-1.zip
(470.38 KiB) Downloaded 378 times

User avatar
goldwingers
Posts: 118
Joined: Wed Sep 06, 2006 1:22 pm
Location: London
Been thanked: 1 time
Contact:

Re: optocode.hex

Post by goldwingers »

Thanks Benj, I see now that you use the board as a simple input - no Macros needed.

Cheers

Ian

ml41782
Posts: 8
Joined: Sat Jan 15, 2011 1:28 pm

Re: optocode.hex

Post by ml41782 »

I just tried downloading this file for the EB035-00-1 and windows states that the file is corrupted. Can I get a copy sent to me or reposted.

Thanks

Michael

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: optocode.hex

Post by medelec35 »

Hiya ml41782.

Not sure if they are the same files?
But until someone can post actual file you can download a HEx test file, flowchart and instructions + circuit form here:
http://www.matrixmultimedia.com/eblock_ ... .php#EB035
I do not agree with instructions :
"All LEDs on PORTC should be illuminated.
Apply voltage (5V – 10V) to each terminal input in turn.
The corresponding LED (D0 to D3) should turn off."

Looking at the Circuit diagram, there are 10K resistors to act as pull down resistors to pull o/p of optos down, hence i/p to programming board down. Also these resistors lower i/p to transistors of opto board,so not affected by electrical noise. So with no i/p to optoisolators, the corresponding o/p of opto is low, so transistors Q1 - Q4 are off. When i/o to opto is 5- 10V as per spec. the opto transistor switches on, so the base of corresponding transistors Q1 - Q4 are switched on (pulled high, which is also i/p to programming board so corresponding i/p goes high), which turns on LED D1 - D4 (labeled 0/4 to 3/7 on PCB)

So I would say
"All LEDs on PORTC should be off.
Apply voltage (5V – 10V) to each terminal input in turn.
The corresponding LED (D0 to D3) should illuminate."
(unless Hex file is totally different from flowchart)

As for the flowchart.
Output port = same value as I/P port.

This Flowchart for 16F88 (alter to suit your own target device) can be used to test your board.
For test to work the shorting links must be in patch LOW.
The hardware should work as the corrected version just above, But in addition Diode D7 on LED board is constantly flashing at 1Hz.

I can't confirm if precompiled hex file works. I suspect it may not? Can someone confirm if it does work or not please?

I was a bit surprised that the precompiled hex file is for a 16F877A when a 16F88 is shipped with programmer and will work with EB0035.
Attachments
EB035-14-1_Modified.fcf
(4.5 KiB) Downloaded 293 times
Martin

Post Reply