Mesa 7i96 Ethernet board

More
20 Jul 2017 19:30 #96168 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
That's odd.

Is strobe sitting at 1 or at 0?

Possibly try swapping all the strobe=1 for strobe=0 and vice-versa. Maybe it's best to write the data and address, pause 1mS write the strobe.

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

More
20 Jul 2017 19:38 #96171 by microsprintbuilder
in show hal I watch strobe and it is off longer than is on but is toggling just really slow and its on only for an instant. I can never get the watch screen to say true though

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

More
20 Jul 2017 19:39 - 20 Jul 2017 19:42 #96172 by microsprintbuilder
the max jitter on this laptop is 6 figures. would it be better to do a for loop so the strobe stays true until something changes?
Last edit: 20 Jul 2017 19:42 by microsprintbuilder.

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

More
20 Jul 2017 19:57 #96174 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
It seems to strobe as expected here:




And that is on a VM with hilarious latency:



The raw_writer is definitely added to a thread (it must be if you see the state toggling 20/10)
Attachments:

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

More
20 Jul 2017 20:53 - 20 Jul 2017 20:57 #96177 by microsprintbuilder
I was looking at the hm2 pins not raw. but now that I have changed that I see that state is working but strobe, data, and address are not. perhaps I messed something up in the comp. I've attached it

File Attachment:

File Name: raw_writer.comp
File Size:1 KB
Attachments:
Last edit: 20 Jul 2017 20:57 by microsprintbuilder.

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

More
20 Jul 2017 21:19 - 20 Jul 2017 21:20 #96178 by microsprintbuilder
I changed my servo period and now I have strobe, But board is still not responding. Making progress :)
Attachments:
Last edit: 20 Jul 2017 21:20 by microsprintbuilder.

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

More
20 Jul 2017 21:20 - 20 Jul 2017 21:21 #96179 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
Actually, something seems to be wrong with the way that the data is being calculated.

65536 is not the right value for 000011 on the inputs.

Try:
data = in(0) + (in(1)<<1) + (in(2)<<2) + (in(3)<<3) + (in(4)<<4) + (in(5)<<5);

(and, actually, all those "in" pins really should be called "out")
Last edit: 20 Jul 2017 21:21 by andypugh.

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

More
20 Jul 2017 21:34 #96181 by microsprintbuilder
with the 0 input true i have 8000.
Attachments:

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

More
20 Jul 2017 21:40 #96182 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board

microsprintbuilder wrote: with the 0 input true i have 8000.


Yes, and it should be 0x001. I made another mistake to do with the order of calculation of << and +

Change the data calculation according to my previous post, and if that doesn't work, try exchanging the strobe=0 and strobe=1 lines throughout.

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

More
20 Jul 2017 21:44 - 20 Jul 2017 21:45 #96183 by microsprintbuilder
I just changed all the in to out in the equation and compiled again. get the same result. When run halcompile does it rewrite or should i remove the old .so
Last edit: 20 Jul 2017 21:45 by microsprintbuilder.

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

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