No output power?
Yes yes, I know you're sick of me.
I'm trying to work with a 7-digit (6 are hooked up) 7-segment display. To test out the display, I essentially adapted the code on the first page of the SX/B·help file.
The segment anodes are hooked up to the lower 7·pins of Port C. The lower 6 pins of Port B are connected to the base of PN2222A transistors, which are then hooked to the digit cathodes. The SX chip allegedly programs fine, has been tested with various options and resonators, but doesn't do what it's been programmed for. Connecting power directly at various places confirms that the wiring is right, and dropping LED's in a few places confirms that there is no power coming from any of the pins.
According to SXSim, it should actually work... after a very, very long startup time, which I do not know the actual time of. Could be a fraction of a second, but it takes too long to step through.
Device·SX28, OSCXT2, TURBO, STACKX, OPTIONX
IRC_CAL·IRC_4MHZ
FREQ·4_000_000
Segs·VAR·RC
counter·VAR·byte
WATCH·Segs, 1, UBIN
PROGRAM Start
Start:
·RB = $FF
·TRIS_C = %00000000
·TRIS_B = %00000000
Main:
·FOR counter = 0 TO 255
··Segs = counter
··PAUSE 10
·NEXT
·GOTO Main
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I shall assemble a circuit to run various·calculations, and control peripherals accordingly. I will give it some user input device, and perhaps a display screen to show data. But what would I call this device...
I'm trying to work with a 7-digit (6 are hooked up) 7-segment display. To test out the display, I essentially adapted the code on the first page of the SX/B·help file.
The segment anodes are hooked up to the lower 7·pins of Port C. The lower 6 pins of Port B are connected to the base of PN2222A transistors, which are then hooked to the digit cathodes. The SX chip allegedly programs fine, has been tested with various options and resonators, but doesn't do what it's been programmed for. Connecting power directly at various places confirms that the wiring is right, and dropping LED's in a few places confirms that there is no power coming from any of the pins.
According to SXSim, it should actually work... after a very, very long startup time, which I do not know the actual time of. Could be a fraction of a second, but it takes too long to step through.
Device·SX28, OSCXT2, TURBO, STACKX, OPTIONX
IRC_CAL·IRC_4MHZ
FREQ·4_000_000
Segs·VAR·RC
counter·VAR·byte
WATCH·Segs, 1, UBIN
PROGRAM Start
Start:
·RB = $FF
·TRIS_C = %00000000
·TRIS_B = %00000000
Main:
·FOR counter = 0 TO 255
··Segs = counter
··PAUSE 10
·NEXT
·GOTO Main
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I shall assemble a circuit to run various·calculations, and control peripherals accordingly. I will give it some user input device, and perhaps a display screen to show data. But what would I call this device...
Comments
It doesn't look like that would affect the program you posted.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I'm a man, but I can change, if I have to, I guess" The Red Green Show
·
Edit: "Verify failed at oscillator" sounds like a bad thing. Is it a bad thing?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I shall assemble a circuit to run various·calculations, and control peripherals accordingly. I will give it some user input device, and perhaps a display screen to show data. But what would I call this device...
Post Edited (DigitalMan) : 7/12/2006 3:37:54 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Well well, I'm seeing things, three of them.
-Stanley Blystone
And conveniently, the time spent pondering over what was going wrong was also used to create the much more complex·countdown program I needed, which also works.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I shall assemble a circuit to run various·calculations, and control peripherals accordingly. I will give it some user input device, and perhaps a display screen to show data. But what would I call this device...
To use the internal oscillator you need to change "OSCXT2" to "OSC4MHZ" in your device line.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I'm a man, but I can change, if I have to, I guess" The Red Green Show
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I think I shall assemble a circuit to run various·calculations, and control peripherals accordingly. I will give it some user input device, and perhaps a display screen to show data. But what would I call this device...
·· I have a question about your circuit...You said you connected the output ports to the bases of transistors, but you didn't say through resistors.· Without a resistor you would most likely draw excessive current from the I/O pins.· Just checking.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com