I need more informations about the frequency on the T1CLK pin. Your explanation give us advices about the use of the piclist but I can't find the timer1 in the pic1684... In my company ITP...
I am grateful to you and all moderators and members to have shared the vast knowledge by this remarkably useful and accurate forum. Thanks for all you do.
This thread predates my membership here by a year or two, and I had never seen it. Thanks Dave for this delicious tidbit and thanks to Vett58 for resurfacing it. BTW, it works a treat!
Thank you for sharing . Your post did help me. Thanks
Just a thought. I did something like this for a LDR to act as a motion detector. It should work for a switch.
checkswitch var bit
compare var bit
clear 'bits are 0
low portb.0 'output pin off
If he wants the Decimal number he will run into a problem at 65535 as that completely fills a WORD variable, requiring the use of a LONG variable.
His OP didn't indicate this need, at...
I think, Archangel, that it exactly the opposite of what he wants - though your code demonstrates the issue perfectly. The OP, it seems from my read, is transmitting the value 3846, but receiving the...
Is this what you want?
serin2 porta.1,84, [STR buffer\5]
serout2 PortA.0,84,[ "Received = ",STR buffer\5]
If you have mister_e 's PIC Multicalc, it has those functions.
I think Richard is correct. This from the manual:
SERIN begins storing data in the variables associated with each Item. If the variable name is used alone, the value of the received ASCII...