Forum Discussion
Altera_Forum
Honored Contributor
16 years agoalt_timestamp() question
Hi! I am just wondering if my understanding of the alt_timestamp is totally wrong... My oszillator clock is 50MHz which i can see in the sopc builder and which has never changed. I configured ...
Altera_Forum
Honored Contributor
16 years ago@dsl:
Hey dsl! Thanks for your fast reply. --- Quote Start --- What you want to do is write a bit of vhld to divide sys_clk by 50, count those pulses, and make the 32bit value available to the bios cpu. When I looked at the altera supplied 'timer' blocks, none of them do that! --- Quote End --- Grrr, and i thought creating a 32bit millisec clock would be a piece of cake and i could do it from sopc builder. I was already thinking about that what you suggested: creating my own 32bit millisec clock via vhld (ok, i don't like vhdl - i prefer the schematic mode). But how would you make the 32bit value available to the bios(?) cpu? Via pio? Or is there a better way? --- Quote Start --- Well 90 * 50000000 is 0x10c388d00 so what you have generated is a counter clocked by the 50MHz input clock that would generate an interrupt every millisecond. --- Quote End --- I would like to understand this quoted phrase, but i cannot figure out where the "90" comes from. Could you explain this to me - perhaps i am having a mental blackout. Thanks for sharing your experience FredFlintstone