I have a program that works as expected with simulation and on proto board. When I burn the same 12F629 chip with my EB006 I get a different result? Specifically bit 4 does not seem to work? I am using the Led E-Block board for testing. And thats another thing the D0-D7 means nothing to me. I looked in the LED data sheet but it makes no reference to what pin may go to D0-D7?
Thanks for the help!
Werner
Different results using EB006 and my other burner with same
Moderator: Benj
-
- Posts: 95
- Joined: Sat Jun 11, 2011 4:12 am
- Has thanked: 87 times
- Been thanked: 31 times
- Contact:
Different results using EB006 and my other burner with same
Werner
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"
- JohnCrow
- Valued Contributor
- Posts: 1367
- Joined: Wed Sep 19, 2007 1:21 pm
- Location: Lincolnshire
- Has thanked: 364 times
- Been thanked: 716 times
- Contact:
Re: Different results using EB006 and my other burner with s
Hi Werner
The D0 - D7 on the led board just means Diode 0 - Diode 7 (Could just as easily have been marked LED 0-LED7)
LED 0 is connected to bit 0 - LED 7 is connected to bit 7 ( on which ever port the board is connected to)
Dont forget not all ports have all bits available as output, or in the case of port E on the 16F877A for example is only 3 bits.
Check the PIC datasheet.
Which port are you trying to use the LED board on as this could be your problem.
The D0 - D7 on the led board just means Diode 0 - Diode 7 (Could just as easily have been marked LED 0-LED7)
LED 0 is connected to bit 0 - LED 7 is connected to bit 7 ( on which ever port the board is connected to)
Dont forget not all ports have all bits available as output, or in the case of port E on the 16F877A for example is only 3 bits.
Check the PIC datasheet.
Which port are you trying to use the LED board on as this could be your problem.
1 in 10 people understand binary, the other one doesn't !
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Different results using EB006 and my other burner with s
Have you got EB006 V6 or V7?Werner wrote:When I burn the same 12F629 chip with my EB006 I get a different result? Specifically bit 4 does not seem to work?
Werner
If I could be wrong as not tried with 8 pin device, connecting bit 4 to port.
With V6 you cannot use bit4 since that is part of the osc, and connects to the boards xtal.
With V7 you will need move the jumper(J18-J19) thats positioned in-between the LED and xtal from osc to A6&7 position.
D0 to D7 are just the bit reference.Werner wrote:D0-D7 means nothing to me. I looked in the LED data sheet but it makes no reference to what pin may go to D0-D7?
So if LED connected to portA
D0 = RA0
D5 = RA5 etc.
If connected to port B
D0= RB0
D5 = RB5 etc.
Martin.
Edit: just noticed John has just beat me to it, so information may be duplicated.
Martin
-
- Posts: 95
- Joined: Sat Jun 11, 2011 4:12 am
- Has thanked: 87 times
- Been thanked: 31 times
- Contact:
Re: Different results using EB006 and my other burner with s
Thanks John and Martin, Ok I have to make a correction. It was my mistake in thinking that FC was burning differently on my EB006 and my other burner. I had accidentally use two different files. Oops my bad. I did try changing the jumper for (J18-J19) but is seems that it does not behave any differently in regards to bit 4 not working. Martin I think you are on to something about the OSC? As you know the pin 3 on the 12F629 chip is GP4/OSC2 and that is the pin that appears not to be working on my EB006/LED Board. I think I should be getting D4/ bit4 led to light but it doesn’t? Like I said it does work on my proto board?
Thanks again for the help Guy’s
Werner
Thanks again for the help Guy’s
Werner
Werner
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"
- 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: Different results using EB006 and my other burner with s
Hello,
Are you aware that 8, 14 and 20pin devices on the EB006 board do not use the correct I/O ports due to the way the chip families have been designed.
For an 8-pin device the I/O appears on the following port pins.
PIN2 - RA5 -> OSC1 / PORT A7 (j18, j19)
PIN3 - RA4 -> OSC2 / PORT A6 (j18, j19)
PIN4 - RA3 -> MCLR / Reset Switch
PIN5 - RA2 -> PORT B2
PIN6 - RA1 -> PORT B6
PIN7 - RA0 -> PORT B7
Are you aware that 8, 14 and 20pin devices on the EB006 board do not use the correct I/O ports due to the way the chip families have been designed.
For an 8-pin device the I/O appears on the following port pins.
PIN2 - RA5 -> OSC1 / PORT A7 (j18, j19)
PIN3 - RA4 -> OSC2 / PORT A6 (j18, j19)
PIN4 - RA3 -> MCLR / Reset Switch
PIN5 - RA2 -> PORT B2
PIN6 - RA1 -> PORT B6
PIN7 - RA0 -> PORT B7
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 95
- Joined: Sat Jun 11, 2011 4:12 am
- Has thanked: 87 times
- Been thanked: 31 times
- Contact:
Re: Different results using EB006 and my other burner with s
Thanks Ben! This explains a lot I will play around with the ports to see if I can get the results I am looking for.
Werner
Werner
Werner
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Different results using EB006 and my other burner with s
You could also take a look at page 13 of this:
http://www.matrixmultimedia.com/datashe ... 6-30-7.pdf
http://www.matrixmultimedia.com/datashe ... 6-30-7.pdf
Martin
-
- Posts: 95
- Joined: Sat Jun 11, 2011 4:12 am
- Has thanked: 87 times
- Been thanked: 31 times
- Contact:
Re: Different results using EB006 and my other burner with s
Thanks Ben and Martin!! I got everything working!
Werner
Werner
Werner
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"
STUDENT OF: Martin - Professor of Flowcode, John, Jan, Fotios and Nicolas "Spanish Dude"