View Single Post
  #2   Spotlight this post!  
Unread 27-05-2003, 10:54
Manoel's Avatar
Manoel Manoel is offline
Registered User
FRC #0383 (Brazilian Machine)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Porto Alegre, RS, Brazil
Posts: 608
Manoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond reputeManoel has a reputation beyond repute
Send a message via ICQ to Manoel Send a message via MSN to Manoel
Re: Why can't you use 255 in PWM?

Quote:
Originally posted by Andrew
Is it because IFI uses 0xff, 0xff as a marker for start of data sequence? If 2 PWMs next to each other in the serial stream were to max out at the same time, it would appear to the master uP as if the data stream had restarted and the remaining variables would be shifted.
That's exactly it.
Code:
 Serout USERCPU, OUTBAUD, 
[255,255,(PWM1),relayA,(PWM2),relayB,(PWM3),(PWM4), (...)]
__________________
Manoel Flores da Cunha
Mentor
Brazilian Machine
Team # 383