how to read eprom? is my propeller dead?
Rontopia
Posts: 139
Im sure its been asked before but I cant seem to find any threads..
how do I grab whatever is on the eprom and read it back to the propeller tool?
I think I may have a dead propeller chip. I cant seem to load either ram or eprom.. propeller tool says the code compiled. but nothing happens.. even with the simple blink program from the methods lab. I have changed nothing on the breadboard.
when I load ram propeller tool says its loading ram.
when I load the eprom the propeller tool says loading eprom and then varifying eprom.
when I use run/identify hardware I get propeller version 1 found on com4.
so.. whats up.. I have had nothing but trouble with this thing in the past few days. how do i check to see if I have somehow damaged the propeller chip, though I have no idea how I might have done that, its the only thing I can think of? but what is my pc talking to if load ram, load eprom and identify hardware are all working as expected?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
how do I grab whatever is on the eprom and read it back to the propeller tool?
I think I may have a dead propeller chip. I cant seem to load either ram or eprom.. propeller tool says the code compiled. but nothing happens.. even with the simple blink program from the methods lab. I have changed nothing on the breadboard.
when I load ram propeller tool says its loading ram.
when I load the eprom the propeller tool says loading eprom and then varifying eprom.
when I use run/identify hardware I get propeller version 1 found on com4.
so.. whats up.. I have had nothing but trouble with this thing in the past few days. how do i check to see if I have somehow damaged the propeller chip, though I have no idea how I might have done that, its the only thing I can think of? but what is my pc talking to if load ram, load eprom and identify hardware are all working as expected?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Aka: CosmicBob
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 3/5/2008 7:13:35 PM GMT
im starting to think it software but i cant prove it. and i dont know how.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
You can attach an LED + resistor to whichever pin you want to test. If the LED lights at all you know it was something with your software.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
if I can ask whats wrong with this code?
VAR
······· long stack[noparse][[/noparse]60]
PUB ButtonBlinkTime | time, index, cog[noparse][[/noparse]6]
··· repeat
······· repeat index from 0 to 5
······· time := ButtonTime(23)
······· cog[noparse][[/noparse]index] := cognew(Blink(index + 4, time, 1_000_000), @stack[noparse][[/noparse]index * 10])
··· repeat index from 5 to 0
······· ButtonTime(23)
······· cogstop (cog[noparse][[/noparse]index])
PUB Blink(pin, rate, reps)
··· dira[noparse][[/noparse]pin]~~
··· outa[noparse][[/noparse]pin]~
··· repeat reps * 2
······· waitcnt(rate/2 + cnt)
······· !outa[noparse][[/noparse]pin]
PUB ButtonTime(pin) : delta | time1, time2
··· repeat until ina[noparse][[/noparse]pin] == 1
··· time1 := cnt
··· repeat until ina[noparse][[/noparse]pin] == 0
··· time2 := cnt
··· delta := time2 - time1
···
this I copied from the mathods lab.. what Im trying to do here at work is run a simple program on the prop, but the prop will be powered with our handy dandy new voltage regulator we are just about to go to market with.. now you dont need to know all that but, but I am not sure whats wrong with this code none the less. it has compiled and loaded into the rom so im assuming that there are no misspelled words, missed "," or brackets... i have actually gone through the methods lab before and I remember getting this code to run no problems.. that was on another system tho.
ok im rambling..
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
I'm glad I'm not the only one who thinks that way, but unfortunately it doesn't work !
The Propeller determines the descending range and using -1 will mess it up. I spent ages tracking that Spin bug feature down.
@ Rontopia : re-post your code with 'code' and '/code' tags so people can see if it's an indentation error.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Edit: Just checked and I have and as far as I could see it worked fine.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
and I dont know what the code /code thing means.. when I do that I get this
[noparse][[/noparse]code]
VAR
······· long stack[noparse][[/noparse]60]
PUB ButtonBlinkTime | time, index, cog[noparse][[/noparse]6]
··· repeat
······· repeat index from 0 to 5
······· time := ButtonTime(23)
······· cog[noparse][[/noparse]index] := cognew(Blink(index + 4, time, 1_000_000), @stack[noparse][[/noparse]index * 10])
··· repeat index from 5 to 0
······· ButtonTime(23)
······· cogstop (cog[noparse][[/noparse]index])
PUB Blink(pin, rate, reps)
··· dira[noparse][[/noparse]pin]~~
··· outa[noparse][[/noparse]pin]~
··· repeat reps * 2
······· waitcnt(rate/2 + cnt)
······· !outa[noparse][[/noparse]pin]
PUB ButtonTime(pin) : delta | time1, time2
··· repeat until ina[noparse][[/noparse]pin] == 1
··· time1 := cnt
··· repeat until ina[noparse][[/noparse]pin] == 0
··· time2 := cnt
··· delta := time2 - time1
···
[noparse][[/noparse]/code]
oh ok.. i· get it now.
now i dont get it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
Post Edited (Rontopia) : 3/5/2008 9:06:22 PM GMT
If you are using IE, in the full editor the # button places a code box in your post.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
the reason I thought I might have damaged the part is .. well because im actaully hooking it up or a config-able voltage regulator. and thoguth I might have zaped it somewhere in the process. that combined with the other post I had here yesterday about the software issue I was having(which I think was a real issue) and its not been a productive couple of days.
one other thing I might add.
on the propeller education kit.
I have the battery and usb connector hooked up just like the instructions show. but when I unhook the battery the power light is still lit, very dimly but i put a volt meter across it and im getting about 2v with no battery pluged in to the bread board... so am i getting some snick circuit to gnd? or is the the expected to behave this way?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
If you type <Ctrl>-I in the Tool, it will show how the compiler will interpret the indentation. This should help you from doing similiar things in the future.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 3/5/2008 9:56:03 PM GMT
sorry about all the trouble
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
My current job I aquired in much the same way.. well not really.. I came in here to help layout a chip.. I did a good enough job that they offered me a job and now Im doing circuit board layout as well as IC layout. also, Testing and some work in the lab.. so I have got to do a lot more fun stuff now that im no longer doing contract work.
when this product is done and out, it will be something that you would be interested in. its a power module that uses PMBus as will as other things. you can configure 3 different rails on the fly and see the results in real time. so 12v in.. and 3 rails of up to 3.5v .. anyway. I have it on my desk and I was going to use one rail to power the prop just for kicks. one guy here was using it to power his ipod. GOSH i love R&D work!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
IC layout designer
Austin Texas
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
I should recommend reading pp 296/297 in the manual. It will take you the rest of your confidence
I have derived 6 rules, but I am not sure whether they really apply
It is most important to understand that a "counted loop" is always performed at least once; there is no "empty loop" ("FROM 1 TO 0")
Also note that the count variable is left set to the value which leads to the loop termination, i.e. its value is ALWAYS out ouf the lower/upper range after the loop
Sadly this is utilized by some Parallax examples for the beginner (e.g. "Bilnker2")
and it works fine. I'll have to try some step values now just to see if anything strange happens.
My theory is that the initial STEP value (or the implicite 1) is just negated when the direction of the loop is determined in the beginning.
Note that all three fields FROM, TO, STEP are dynamic and can be modified within the loop (see the example on p. 297)
You can also state STEP 0