Page 1 of 1

optocode.hex

Posted: Mon Jun 23, 2008 6:25 pm
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

Re: optocode.hex

Posted: Tue Jun 24, 2008 10:08 am
by Benj
Hello

I have attached the test files.

Re: optocode.hex

Posted: Wed Jun 25, 2008 8:44 pm
by goldwingers
Thanks Benj, I see now that you use the board as a simple input - no Macros needed.

Cheers

Ian

Re: optocode.hex

Posted: Sun Feb 13, 2011 1:00 am
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

Re: optocode.hex

Posted: Sun Feb 13, 2011 9:49 am
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.