please dont rip this site

This code was developed by Ken Webster for his Time Source Monitoring Test System

14-bit core PIC source:

PC Windows NT or 95 or 98 source to talk to PIC:

Uses CRC and checksum and packet serial number to detect corrupt or missing packets. Chop out code that supports channels if you only need one device connected (this app is for connecting multiple devices via a multiplexer). If need help feel free to email me at ken@webster.org

; Apply W to command-interpreter receive checksums
update_crx_checksums    xorwf           rCmdxs,F          ;update plain checksum
                        xorwf           rCmdcl,F          ;update cyclic checksum
                        addwf           rCmdch,F
                        bcf             STATUS,C
                        rrf             rCmdch,F
                        btfsc           rCmdcl,0
                        bsf             rCmdch,7
                        rrf             rCmdcl,F
                        movlw           0x31
                        addwf           rCmdcl,F
                        btfsc           STATUS,C
                        incf            rCmdch,F
                        movlw           0x03
                        addwf           rCmdch,F                        return

void Checksum::Add(unsigned char c){    plain_checksum ^= c;
    cyclic_checksum ^= c;    cyclic_checksum += (unsigned short)c << 8;
    bool carry = (cyclic_checksum & 1) ? true : false;    cyclic_checksum >>= 1;
    cyclic_checksum |= carry ? 0x8000 : 0;    cyclic_checksum += 817;}

See also:


file: /Techref/scenix/lib/io/osi2/serial/sermux.htm, 2KB, , updated: 2000/5/3 12:54, local time: 2017/12/16 07:23,
TOP NEW HELP FIND: 
54.242.205.33:LOG IN

 ©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/scenix/lib/io/osi2/serial/sermux.htm"> Ken Websters PIC16C74 serial port multiplexer. </A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171216 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .