JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

Protocol Builder idea: Mid-Frame Bursts

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Software
View previous topic :: View next topic  
Author Message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21234
Location: Chicago, IL

                    
PostPosted: Fri May 28, 2010 9:50 am    Post subject: Protocol Builder idea: Mid-Frame Bursts Reply with quote

Hey Mike,
I've been doing some work with mid-frame bursts (MFBs) and I see an opportunity to add some more functionality to Protocol Builder.

See my notes here:
http://www.hifi-remote.com/forums/viewtopic.php?t=11201&start=15

And a working upgrade here:
http://www.hifi-remote.com/forums/viewtopic.php?t=12226

Basically, the version of the MFB that PB currently supports will give a MFB in the following format:

ONE on time
LEADIN off time

There is a 2nd format that could be supported. If the set the MFB flag (W7.3 in S3C8, $AB.3 in HCS08) and jump to the regular engine you'll get an MFB which is a repeat of the leadin pair.

You can also format a custom pair if you want, either using a different mix of the times in the data block, or if necessary using brand new times.

For S3C8 you would load the timing data into RD0/1/2/3 and for HCS08 you would load it into $9a/b/c/d

I tried to load the RD0 registers directly using LDW but for some reason that didn't work, but when I did it the UEI way (see below) it did work.

BITS W7.3
ld w0, #D0h
ld @w0,pd10
inc w0
ld @w0,pd11
inc w0
ld @w0,pd04
inc w0
ld @w0,pd05
JP 0146h

For the upgrade I created for the Elan v883, I needed to create an MFB with "+800 -800" timings. The -800 was already in the data block for the ONE time, so I needed to add +800, which I put into 2 of the 3 spare bytes between the leadin times (R20/21) and the bit count (R25), but I see no reason why I couldn't have also loaded the times as hard coded values in the code itself.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
mr_d_p_gumby
Expert


Joined: 03 Aug 2003
Posts: 1370
Location: Newbury Park, CA

                    
PostPosted: Sat May 29, 2010 10:36 am    Post subject: Reply with quote

It sounds like you've demystified the MFB enough that maybe I can find a way to implement both methods in PB. I'll certainly have a look at it as soon as I stop having to speak Chinese.

Xie xie ni.
_________________
Mike England
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Software All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control