Javelin EEPROM usage and CLK availability
Mark Fossler
Posts: 4
I'm working on a new design, and can't find specific info on whether I can write/read EEPROM under program control. I can add a serial EEPROM to the architechture to store a few power-up variables, but why re-invent the wheel ? I'd also like to get a clock, any clock, from the Javelin module that I can buffer and use for a·FPGA state machine.·Syncronous is always better.·I don't see one in the docs, but is there one lurking out there that isn't published ?
Best Regards,
Mark
Best Regards,
Mark
Comments
If you store values from address 0 upwards, downloading a new
program to the javelin does not overwrite stored values.
You can generate a stable clock signal using the PWM vp.
Since PWM runs in the background it is not affected
by your program code.
regards peter
As for the clock, the PWM would work, but under ideal conditions/maximum performance·I would need/want a 640 khz clock which would eat a fair amount of program cycles....I guess I can just add a clock gen and sync with a few metastable resistant FFs and pay close attention to my timing diagrams. Syncronous on one side, async on the other...piece of cake. I'll probably be back with some exception processing questions in the near future.
I think it's a great "chip". I've resisted the Stamps for a number of years, prefering micros I could write asm for....I like my "bits"...ADDC & SHFTL, but I saw this Java box and Marky's ears perked up....$90 bucks, 25 Mhz, with tools. I saw a post, "I wish it was faster and cheaper" and I had to chuckle....I think a lot of guys wish the same thing about their wives ! (forgive me Lord, Hail Mary, Our Father) I'm still a bit-banger at heart, but after you get all of the closing braces in the right spots, Java·is a whole lot easier to change. I know Java about as well as I know the bottom of my shoe, but when you make an error in software, all you have to do is re-compile.
Best Regards,
Mark
It is outlined in the Javelin Stamp manual on page 202 of the PDF HERE or page 182 of the hardcopy manual.
Here is the example code from the manual:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Jon
www.jonkeinath.com
The highest frequency is therefore 1000000/(8.68+8.68)=57.6kHz.
regards peter
·
Best Regards,
Mark
Since the interrupt service routine runs every 217 cycles (25MHz*8.68usec)
the pwm isr code·takes about (18/217)*100% = 8.3%.
The 18 cycles is in fact the storage size for the isr pwm code and the real
executed statements take less then 18 cycles because not all statements
are executed every isr. The percentage is therefore less than 8.3%.
regards peter
·
Thanks to all.