Page 1 of 1

Contend with 16F690´s Port A

Posted: Thu May 02, 2013 12:31 am
by Karbulla
Hi all. I´m just trying to turn on the leds on a EB004 E-block, connected to a 16F690´s Port A (20MHz) by a EB-006-7 multiprogrammer (XTAL/FAST). The flowchart consists in a single output box with 0b11111111  PORT A. Simple, BUT why none of them turn on ?? Coiled with this little issue, so a little help to this friend. Thanks.

Re: Contend with 16F690´s Port A

Posted: Thu May 02, 2013 3:18 am
by Kenrix2
Could you please try that using port C instead. RA3 is an input only, RA4 and RA5 are connected to your crystal.

Re: Contend with 16F690´s Port A

Posted: Thu May 02, 2013 7:37 am
by medelec35
Not only do I agree with Kenrix2,
But I would like to add:
Port A0 and port A1 will be port B7 and B6 on Eb006 respectively (not 100% sure on all the connections, will check them out tonight).


Port B will not work the way you think it should.
For example if you want to use port B6 and B7 on the EB006 programmer, then that will be B0 and B1 on the programmer.
So If you have LED Eblock connected, and enable B6 and B7, then LED D0 and D1 will light respectively.

I know its got nothing to do with question about portA, but i thought I would mention it just in case you decide to use port B (4,5,6 or 7) for any reason.

Martin

Re: Contend with 16F690´s Port A

Posted: Tue May 07, 2013 2:28 am
by Karbulla
Thanks 2 <Kenrix2>. I knew Port C is the only 16F690´s port with a logic behavior, at least dealing with Eblocks, i.e
RC0 turns on LED 0, RC1 turns on LED 1..... RC7 turns on LED 7.
As <Medelec35> said 2 of 4 avaluable pins of Port B give us a surprise: RB6 address LED 0 and RB7 address LED 1 on
the EB-004 Led board. It´s a fact. But the doubt remains almost the same: - how many LEDS will turn on a EB004 LEd board
connected to a 16F690´s Port A, via an EB-006 Multiprogramer ? One, two or none of them ?

Re: Contend with 16F690´s Port A

Posted: Tue May 07, 2013 7:12 am
by medelec35
Karbulla wrote:But the doubt remains almost the same: - how many LEDS will turn on a EB004 LEd board
connected to a 16F690´s Port A, via an EB-006 Multiprogramer ? One, two or none of them ?
You can get a few working if you connect to port A and pot B of the programmer.
If can let you know a bit later, what pins of port A connect to which pins of portA and portB of Eb006.
Its something like 3 pins of port A connect to port B
and 2 pins or port A connect to port A itself.

Re: Contend with 16F690´s Port A

Posted: Tue May 07, 2013 9:09 am
by medelec35
As promised:

Below is a list Microcontroller connections verses Programmer connections

Code: Select all

Chip	Programmer
A0	  B7
A1	  B6
A2     B2
A3	  Not connected
A4	  A6
A5	  A7
Test carried out using EB006 V7 using internal oscillator and J18/19 on A6&7

Re: Contend with 16F690´s Port A

Posted: Wed May 08, 2013 11:20 pm
by Karbulla
This idea, where we connect PIC´s pins simultaneously to Port A and Port B may be implemented by E-Blocks
(EB006 + EB004) or should I use discrete LEDs and PIC ?
Ask this cause I tried the E-Block version and seems impossible to EB004 (leds) links to different Port in the
same "Pin Connections" window.

Re: Contend with 16F690´s Port A

Posted: Thu May 09, 2013 10:12 am
by Benj
Hello,

The EB006 correctly routes the 18, 28 and 40 pin chips to the correct port pins.

However the 8, 14 and 20 pin devices have a very different style so to allow these to work we had to re-route the ports for these chips slightly.

It may be worth moving to a 28-pin or 40-pin device for simplicity and extra I/O?

Re: Contend with 16F690´s Port A

Posted: Sat May 11, 2013 3:43 am
by Karbulla
Frankly I´d like to explore the idea to re-route Ports in the 16F690 (20 pins) for a simple reason:
I got about 15 of them, and doing so, I´d give a good use to them. All I know is that we have to
setup the internal oscillator releasing OSC1, OSC2 pins to behave as adittional I/Os, but and the
rest ? Could this change of Ports be implemented with E-Blocks or have I to implement it discretly ?
Any clue about this issue will be welcome. Thanks.