Loading...
Pages: 1 2 [3]   Go Down
Author Topic: Reading MOSI data from Bosch ASIC  (Read 745 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 219
Posts: 13896
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I see no point in it, as the whole byte has to sent over serial regardless...

You've lost me there. Do you want to send a whole lot of zeroes? If you are sending the raw data, the single byte is sent anyway. The leading zeroes are just how it is displayed.
Logged


UK
Offline Offline
Sr. Member
****
Karma: 1
Posts: 313
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For a value of 0, I can completely understand why one wouldn't write 00000000, but for 1100011 - it seems strange to me to omit the leading 0.

I suppose just my inexperience with this sort of thing in general, still - I'm glad I've got it working. I'll take a look on a logic analyser in the next few days, and see if the data is sent back simultaneously with those dummy bits, or after those dummy bits. I'd be interested to know.

EDIT - I suppose if my first encounters with this had been on a 32bit architecture for example, it would make more sense to me to not be printing 00000000000000000000000000000001 for example! (feel free to double check the 31 leading 0s, I can't say I checked myself!)
« Last Edit: January 30, 2013, 05:32:14 pm by jtw11 » Logged

Pages: 1 2 [3]   Go Up
Print
 
Jump to: