mesa 5i20 and DAC

More
26 May 2010 18:44 #3019 by PCW
Replied by PCW on topic Re:mesa 5i20 and DAC
Also RDY polarity must be reversed as well
because your buffer would be disabled during
the transfer if active high as shown in the chart

Please Log in or Create an account to join the conversation.

More
27 May 2010 00:15 #3021 by stormpetrel
Replied by stormpetrel on topic Re:mesa 5i20 and DAC
The DAC is not directly accessible by the mesa board. The DAC is controlled via SPI by a micro-controller I will program.
As I was focused on designing the hardware, I brewed this temporary protocol however I agree with you about using standard hand-shaking protocol.

Please Log in or Create an account to join the conversation.

More
27 May 2010 02:18 - 27 May 2010 03:45 #3024 by PCW
Replied by PCW on topic Re:mesa 5i20 and DAC
I just reversed RDY because your schematic showed the '541 buffer which needs an active low /RDY
to enable the data to the rest of the circuit

So I have an example bitfile with these minor changes
1. Active low ready = /RDY
2. MSB flag is high for MSB (MSB sent first)

to test you will need to

1. Enable the output bits (this you can do in HAL)
2 Select alternate source for output bits of twiddler module (this you must use raw-write to 0x1204) data is 0xFFC000
3. To output data you write your 16 bit data to 0x4e00. This will start the handshaking scheme

once handshaking is started, the firmware waits for low /RDY then outputs and strobes MSB with MSB flag high
the firmware then waits for /RDY high then /RDY low. It then outputs and strobes the LSB data with MSB flag low.
The firmware the waits for /RDY high before being ready for the next cycle, started by the next host write to 0x4e00

5I20 bitfile, pinfile, and twiddle module assy source: freeby.mesanet.com/4110.ZIP

Note that the firmware puts debug codes in the dual ported HM2 RAM (read at 0x4E00)
so you can trace the handshake progress
Last edit: 27 May 2010 03:45 by PCW. Reason: add link

Please Log in or Create an account to join the conversation.

More
31 May 2010 09:33 #3050 by stormpetrel
Replied by stormpetrel on topic Re:mesa 5i20 and DAC
Thank you!!!
Unfortunately I will be busy this month.
I hope to work on my milling machine in July.
I will let you know about my progress.
Cheers, Dom

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.080 seconds
Powered by Kunena Forum