From vk4tec at tech-software.net Sun Dec 12 08:30:59 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Sun, 12 Dec 2004 18:30:59 +1000 Subject: [picsig] PIC and radio telemetery Message-ID: Hi, Have XR2206 XR2211 16F628 can I use these for radio telemetry ? Or am i wasting my time ? cheers From mikeberg at tds.net Sun Dec 12 19:31:50 2004 From: mikeberg at tds.net (mikeberg at tds.net) Date: Sun, 12 Dec 2004 19:31:50 +0000 Subject: [picsig] Re: picsig Digest, Vol 5, Issue 1 Message-ID: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> My MFJ 1270 TNC uses the EXAR chips to encode (2206) and decode (2211) packets quite well. It's a higher parts count than say a MX614 modem chip, but in return, you get a platform that's very adjustable. The PIC is quite capable of the task, see my packet projects at: http://www.ringolake.com/pic_proj/pic_index.html 73 Mike N0QBH > > From: picsig-request at lists.tapr.org > Date: 2004/12/12 Sun PM 06:00:22 GMT > To: picsig at lists.tapr.org > Subject: picsig Digest, Vol 5, Issue 1 > > Send picsig mailing list submissions to > picsig at lists.tapr.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > or, via email, send a message with subject or body 'help' to > picsig-request at lists.tapr.org > > You can reach the person managing the list at > picsig-owner at lists.tapr.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of picsig digest..." > > > Today's Topics: > > 1. PIC and radio telemetery (Andrew Rich) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 12 Dec 2004 18:30:59 +1000 > From: "Andrew Rich" > Subject: [picsig] PIC and radio telemetery > To: "TAPR PIC Development Special Interest Group" > > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Have XR2206 XR2211 16F628 can I use these for radio telemetry ? > > Or am i wasting my time ? > > cheers > > > > > > ------------------------------ > > _______________________________________________ > picsig mailing list > picsig at lists.tapr.org > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > > End of picsig Digest, Vol 5, Issue 1 > ************************************ > From vk4tec at tech-software.net Sun Dec 12 20:27:23 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Mon, 13 Dec 2004 06:27:23 +1000 Subject: [picsig] Re: picsig Digest, Vol 5, Issue 1 In-Reply-To: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> References: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> Message-ID: <1102883243.4584.4.camel@localhost.localdomain> awesome Thanks Mike Actually I had your web page printed out and part of my notes when I was learning PIC's ;-) Cheers Andy VK4TEC On Mon, 2004-12-13 at 05:31, mikeberg at tds.net wrote: > My MFJ 1270 TNC uses the EXAR chips to encode (2206) and decode (2211) packets quite well. It's a higher parts count than say a MX614 modem chip, but in return, you get a platform that's very adjustable. The PIC is quite capable of the task, see my packet projects at: http://www.ringolake.com/pic_proj/pic_index.html > > 73 > Mike N0QBH > > > > From: picsig-request at lists.tapr.org > > Date: 2004/12/12 Sun PM 06:00:22 GMT > > To: picsig at lists.tapr.org > > Subject: picsig Digest, Vol 5, Issue 1 > > > > Send picsig mailing list submissions to > > picsig at lists.tapr.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > or, via email, send a message with subject or body 'help' to > > picsig-request at lists.tapr.org > > > > You can reach the person managing the list at > > picsig-owner at lists.tapr.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of picsig digest..." > > > > > > Today's Topics: > > > > 1. PIC and radio telemetery (Andrew Rich) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Sun, 12 Dec 2004 18:30:59 +1000 > > From: "Andrew Rich" > > Subject: [picsig] PIC and radio telemetery > > To: "TAPR PIC Development Special Interest Group" > > > > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > > > Hi, > > > > Have XR2206 XR2211 16F628 can I use these for radio telemetry ? > > > > Or am i wasting my time ? > > > > cheers > > > > > > > > > > > > ------------------------------ > > > > _______________________________________________ > > picsig mailing list > > picsig at lists.tapr.org > > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > > > > > End of picsig Digest, Vol 5, Issue 1 > > ************************************ > > > > > _______________________________________________ > picsig mailing list > picsig at lists.tapr.org > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > From vk4tec at tech-software.net Mon Dec 13 03:05:31 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Mon, 13 Dec 2004 13:05:31 +1000 Subject: [picsig] PIC and COMPACT FLASH Message-ID: Anybody used CF with PICS ? Would like to build a data logger From jmorley at endeavour-usa.com Mon Dec 13 03:31:40 2004 From: jmorley at endeavour-usa.com (John Morley) Date: Sun, 12 Dec 2004 22:31:40 -0500 Subject: [picsig] PIC and COMPACT FLASH In-Reply-To: References: Message-ID: <6.2.0.14.2.20041212223035.0393d150@mail.endeavour-usa.com> Check out the forum for the CCS C Compiler. It has bee discussed extensively over there. http://www.ccsinfo.com/forum John >Anybody used CF with PICS ? > >Would like to build a data logger > >_______________________________________________ >picsig mailing list >picsig at lists.tapr.org >https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig From vk4tec at tech-software.net Tue Dec 14 08:00:08 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Tue, 14 Dec 2004 18:00:08 +1000 Subject: [picsig] 16F877 programming In-Reply-To: <1102883243.4584.4.camel@localhost.localdomain> References: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> <1102883243.4584.4.camel@localhost.localdomain> Message-ID: <1103011121.13883.4.camel@localhost.localdomain> Hi, Wonder if someone can help, do I need to hook up both VDD (x2) and VSS(x2) to program the 16F877? or just use one vdd and one vss On Mon, 2004-12-13 at 06:27, Andrew Rich wrote: > awesome > > Thanks Mike > > Actually I had your web page printed out and part of my notes when I was > learning PIC's ;-) > > Cheers Andy VK4TEC > > > On Mon, 2004-12-13 at 05:31, mikeberg at tds.net wrote: > > My MFJ 1270 TNC uses the EXAR chips to encode (2206) and decode (2211) packets quite well. It's a higher parts count than say a MX614 modem chip, but in return, you get a platform that's very adjustable. The PIC is quite capable of the task, see my packet projects at: http://www.ringolake.com/pic_proj/pic_index.html > > > > 73 > > Mike N0QBH > > > > > > From: picsig-request at lists.tapr.org > > > Date: 2004/12/12 Sun PM 06:00:22 GMT > > > To: picsig at lists.tapr.org > > > Subject: picsig Digest, Vol 5, Issue 1 > > > > > > Send picsig mailing list submissions to > > > picsig at lists.tapr.org > > > > > > To subscribe or unsubscribe via the World Wide Web, visit > > > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > > or, via email, send a message with subject or body 'help' to > > > picsig-request at lists.tapr.org > > > > > > You can reach the person managing the list at > > > picsig-owner at lists.tapr.org > > > > > > When replying, please edit your Subject line so it is more specific > > > than "Re: Contents of picsig digest..." > > > > > > > > > Today's Topics: > > > > > > 1. PIC and radio telemetery (Andrew Rich) > > > > > > > > > ---------------------------------------------------------------------- > > > > > > Message: 1 > > > Date: Sun, 12 Dec 2004 18:30:59 +1000 > > > From: "Andrew Rich" > > > Subject: [picsig] PIC and radio telemetery > > > To: "TAPR PIC Development Special Interest Group" > > > > > > Message-ID: > > > Content-Type: text/plain; charset="iso-8859-1" > > > > > > Hi, > > > > > > Have XR2206 XR2211 16F628 can I use these for radio telemetry ? > > > > > > Or am i wasting my time ? > > > > > > cheers > > > > > > > > > > > > > > > > > > ------------------------------ > > > > > > _______________________________________________ > > > picsig mailing list > > > picsig at lists.tapr.org > > > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > > > > > > > > End of picsig Digest, Vol 5, Issue 1 > > > ************************************ > > > > > > > > > _______________________________________________ > > picsig mailing list > > picsig at lists.tapr.org > > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > > > From vk4tec at tech-software.net Tue Dec 14 20:18:00 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Wed, 15 Dec 2004 06:18:00 +1000 Subject: [picsig] PIC and radio telemetery In-Reply-To: Message-ID: Sorry Richard, 1200 baud or maybe 300 baud I have the layout and all the components. Just a bit concerened that the new chips zero cross before channging tones. I believe the xr2206 / xr2211 combination dont do that. But if they have been used for years thats good enuf for me. I will be using 8 bit ascii. Cheers -----Original Message----- From: Richard Carter [mailto:recarter at prodigy.net] Sent: Wednesday, 15 December 2004 4:45 AM To: vk4tec at tech-software.net; TAPR PIC Mailing List Subject: RE: [picsig] PIC and radio telemetery Can you be more specific? Are you trying to send or receive? What protocol and data rate, etc... Regards Rich - KE1EV -----Original Message----- From: picsig-bounces at lists.tapr.org [mailto:picsig-bounces at lists.tapr.org]On Behalf Of Andrew Rich Sent: Sunday, December 12, 2004 3:31 AM To: TAPR PIC Development Special Interest Group Subject: [picsig] PIC and radio telemetery Hi, Have XR2206 XR2211 16F628 can I use these for radio telemetry ? Or am i wasting my time ? cheers _______________________________________________ picsig mailing list picsig at lists.tapr.org https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig From vk4tec at tech-software.net Sat Dec 18 11:11:28 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Sat, 18 Dec 2004 21:11:28 +1000 Subject: [picsig] Packet Radio Tone Generation Message-ID: Howdy, Working the numbers for 1200 Baud packet generation using a PIC. Does this look right ? 1200 Baud = 1200 possible symbol changes per second 1 Symbol change possible every 833 uS Tones used are 1200 Hz and 2200 Hz How then does 1200 and 2200 fit into the scheme ? Does one cycle of 1200 Hz equate to enought for one symbol ? 2200 does not seem to fit cleanily assuing zero crossing Cheers Andy VK4TEC From mikeberg at tds.net Sat Dec 18 21:47:04 2004 From: mikeberg at tds.net (Mike Berg) Date: Sat, 18 Dec 2004 15:47:04 -0600 Subject: [picsig] Re: picsig Digest, Vol 5, Issue 5 References: Message-ID: <000401c4e54b$1f310270$6400a8c0@general> The 1200/2200 Hz tones are (as I was told) a hangover from the Bell 202 specs for FSK data transmission. Bits are detectable at the 1:1 data speed / frequency ratio. Remember that with a sine wave there's two zero crossings per cycle. In my detector (and others) we set the threshold at 1700 Hz (588 uS zero crossings). Anything shorter (higher freq) is treated as a 2200 Hz tone and anything longer (lower freq) is a 1200 Hz tone. As long as the signal to noise ratio is high enough it works quite well. Mike N0QBH > 1. Packet Radio Tone Generation (Andrew Rich) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 18 Dec 2004 21:11:28 +1000 > From: "Andrew Rich" > Subject: [picsig] Packet Radio Tone Generation > To: "TAPR PIC Development Special Interest Group" > > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > Howdy, > > Working the numbers for 1200 Baud packet generation using a PIC. > > Does this look right ? > > 1200 Baud = 1200 possible symbol changes per second > > 1 Symbol change possible every 833 uS > > Tones used are 1200 Hz and 2200 Hz > > How then does 1200 and 2200 fit into the scheme ? > > Does one cycle of 1200 Hz equate to enought for one symbol ? > > 2200 does not seem to fit cleanily assuing zero crossing > > Cheers Andy VK4TEC > > > > > ------------------------------ > > _______________________________________________ > picsig mailing list > picsig at lists.tapr.org > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > > End of picsig Digest, Vol 5, Issue 5 > ************************************ From vk4tec at tech-software.net Sun Dec 19 21:21:11 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Mon, 20 Dec 2004 07:21:11 +1000 Subject: [picsig] Antenna rotator In-Reply-To: <1102883243.4584.4.camel@localhost.localdomain> References: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> <1102883243.4584.4.camel@localhost.localdomain> Message-ID: <1103491271.9766.11.camel@localhost.localdomain> Hi, I have a potentiometer hooked up to a 16F877A. This supplies 360 Degrees rotation for 256 readings. My PC software supplies ASCII values from 1 to 360. How can I 1) handle the maths for 360/255 in assembly 2) convert the ascii from the PC to a number I can use to compare to the pot position ? another question I have is how do I convert a register value, say 92 into "9" and "2" I can send to a LCD. Cheers Andy VK4TEC From mikeberg at tds.net Tue Dec 21 01:35:48 2004 From: mikeberg at tds.net (Mike Berg) Date: Mon, 20 Dec 2004 19:35:48 -0600 Subject: [picsig] Re: picsig Digest, Vol 5, Issue 7 References: Message-ID: <000401c4e6fd$6aab92c0$6400a8c0@general> > Today's Topics: > > 1. Antenna rotator (Andrew Rich) > > > Hi, > > I have a potentiometer hooked up to a 16F877A. > > This supplies 360 Degrees rotation for 256 readings. > > My PC software supplies ASCII values from 1 to 360. > > How can I > > 1) handle the maths for 360/255 in assembly > 2) convert the ascii from the PC to a number I can use to compare to the > pot position ? > > another question I have is how do I convert a register value, say 92 > > into "9" and "2" I can send to a LCD. > > Cheers Andy VK4TEC > Hi Andy, the methods I use are kinda quick & dirty, but the get the job done. If you're going to convert 1-360 to a 0-255 range the degree number would need to be multiplied by 255/360 = .7083. To do this in hex we need to multiply 256 * .7083 = 181 or b5h. This will be your multiplication factor in hex. You can use a 16x16 multiply routine in the source listed below. You really only need a 16x8 at most, so load the unused MSB(s) with 00h. For example d'360' = 168h 168h * b5h = fe88h (254.5 decimal) d'180' = b4h b4h * b5h = 7f44h (127.2 decimal) d'90' = 5ah 5ah * b5h = 3fa2h (63.6 decimal) The result you want is the most signifigant byte. To be more precise you could use the LSB to round up, but for your app, it's maybe not neccesary. To do the rounding, subtract the LSB from 80h. If the LSB is greater add 1 to the MSB. The PIC math routines are availible at : http://www.piclist.com/techref/microchip/math/index.htm Mike Berg N0QBH From vk4tec at tech-software.net Tue Dec 21 01:39:45 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Tue, 21 Dec 2004 11:39:45 +1000 Subject: [picsig] Re: picsig Digest, Vol 5, Issue 7 In-Reply-To: <000401c4e6fd$6aab92c0$6400a8c0@general> Message-ID: thanks mike I also came up with this Guys, Worked it out, but my range was reduced to 127 (I needed to use the MSB for pos/neg) Basically you take away 100, test for neg take away 10, test for neg take away 1, test for neg And after going neg, increment and put back the number you took away. ; ------------------------------------------------------ ; 16F877A - Binary number to three digit ASCII ; Andrew Rich - Dec 2004 ; ------------------------------------------------------ LIST P=16F877A, R=DEC #include "P16F877A.INC" __config _HS_OSC & _LVP_OFF & _WDT_OFF & _PWRTE_ON & _BODEN_ON ORG 0 ; start code - this is where cpu starts on reset goto main ; goto main routine cblock 0x20 ; this is where the RAM starts numb ; somewhere to store the number hund ; counter for hundreds tens ; counter for tens ones ; counter for ones endc ; we are done defining the RAM allocations neg_bit equ 7h ; pos/neg bit of numb reg main movlw 0x00 ; put zero into movwf numb ; numb register movlw 0x00 ; put zero into movwf hund ; hund register movlw 0x00 ; put zero into movwf tens ; tens register movlw 0x00 ; put zero into movwf ones ; ones register movlw h'7C' ; sample number 92 dec movwf numb ; put into numb hunds_ movlw 0x64 ; we are going to take away 100 subwf numb,w ; take away dec 100 (hex 64) movwf numb ; put the result back into numb btfsc numb,neg_bit ; test if numb is neg goto hunds_fix ; we have gone neg move on movfw hund ; this code will addlw 0x01 ; increment the hund movwf hund ; register by 1 goto hunds_ ; keep looping taking away ten hunds_fix movfw numb ; fixup numb after neg addlw 0x64 ; put back 100 movwf numb ; restore numb tens_ movlw 0x0A ; we are going to take away 10 subwf numb,w ; take away dec 10 (hex A) movwf numb ; put the result back into numb btfsc numb,neg_bit ; test if numb is neg goto tens_fix ; we have gone neg move on movfw tens ; this code will addlw 0x01 ; increment the tens movwf tens ; register by 1 goto tens_ ; keep looping taking away ten tens_fix movfw numb ; fixup numb after neg addlw 0x0A ; put back ten movwf numb ; restore numb ones_ movlw 0x01 ; we are going to take away 1 subwf numb,w movwf numb btfsc numb,neg_bit ; test if numb is neg goto ones_fix ; we have gone neg move on movfw ones ; this code will addlw 0x01 ; increment the tens movwf ones ; register by 1 goto ones_ ; keep looping taking away ones ones_fix movfw numb ; fixup numb after neg addlw 0x01 ; put back one movwf numb ; restore numb to_ascii movfw hund ; move hund to addlw h'30' ; a real ascii value movwf hund ; and show it movfw tens ; move tens to addlw h'30' ; a real ascii value movwf tens ; and show it movfw ones ; move ones to addlw h'30' ; a real ascii value movwf ones ; and show it ; -------------------------------------------------------------------------- ----------------- end ; end of file -----Original Message----- From: picsig-bounces at lists.tapr.org [mailto:picsig-bounces at lists.tapr.org]On Behalf Of Mike Berg Sent: Tuesday, 21 December 2004 11:36 AM To: picsig at lists.tapr.org Subject: [picsig] Re: picsig Digest, Vol 5, Issue 7 > Today's Topics: > > 1. Antenna rotator (Andrew Rich) > > > Hi, > > I have a potentiometer hooked up to a 16F877A. > > This supplies 360 Degrees rotation for 256 readings. > > My PC software supplies ASCII values from 1 to 360. > > How can I > > 1) handle the maths for 360/255 in assembly > 2) convert the ascii from the PC to a number I can use to compare to the > pot position ? > > another question I have is how do I convert a register value, say 92 > > into "9" and "2" I can send to a LCD. > > Cheers Andy VK4TEC > Hi Andy, the methods I use are kinda quick & dirty, but the get the job done. If you're going to convert 1-360 to a 0-255 range the degree number would need to be multiplied by 255/360 = .7083. To do this in hex we need to multiply 256 * .7083 = 181 or b5h. This will be your multiplication factor in hex. You can use a 16x16 multiply routine in the source listed below. You really only need a 16x8 at most, so load the unused MSB(s) with 00h. For example d'360' = 168h 168h * b5h = fe88h (254.5 decimal) d'180' = b4h b4h * b5h = 7f44h (127.2 decimal) d'90' = 5ah 5ah * b5h = 3fa2h (63.6 decimal) The result you want is the most signifigant byte. To be more precise you could use the LSB to round up, but for your app, it's maybe not neccesary. To do the rounding, subtract the LSB from 80h. If the LSB is greater add 1 to the MSB. The PIC math routines are availible at : http://www.piclist.com/techref/microchip/math/index.htm Mike Berg N0QBH _______________________________________________ picsig mailing list picsig at lists.tapr.org https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig From dvanhorn at dvanhorn.org Tue Dec 21 02:20:35 2004 From: dvanhorn at dvanhorn.org (Dave VanHorn) Date: Mon, 20 Dec 2004 21:20:35 -0500 Subject: [picsig] Antenna rotator In-Reply-To: <1103491271.9766.11.camel@localhost.localdomain> References: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> <1102883243.4584.4.camel@localhost.localdomain> <1103491271.9766.11.camel@localhost.localdomain> Message-ID: <6.2.0.14.2.20041220211513.03befa88@mail.dvanhorn.org> > >1) handle the maths for 360/255 in assembly 1: use 16 bit math, and deal directly in degrees. 2: Convert degrees to dilberts, and work in dilberts. (255 dilberts to the circle) >2) convert the ascii from the PC to a number I can use to compare to the >pot position ? Do you always get three digits? Ascii to binary each digit, then add hundreds, tens, and ones, to make it into binary. You'll need 16 bits to do 360 degrees. Another suggestion, use 0-180 since you don't need <2 degree pointing anyway, and 0-180 fits in a byte nicely. >another question I have is how do I convert a register value, say 92 > >into "9" and "2" I can send to a LCD. Save a copy of the byte. Swap high nybble to low. Mask off the high nybble. Add to 31h Get the original value back. Mask off the high nybble. Then use the low nybble direct, the same way. >Cheers Andy VK4TEC > > > > >_______________________________________________ >picsig mailing list >picsig at lists.tapr.org >https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig From Darryl at radio-active.net.au Tue Dec 21 23:34:36 2004 From: Darryl at radio-active.net.au (Darryl Smith) Date: Wed, 22 Dec 2004 10:34:36 +1100 Subject: [picsig] PIC ISP problem with 12F675 Message-ID: Guys I am attempting to program a PIC12F675 using the KitsRUs K182 board. Right now the unit will read the PIC but not program it at all. I have a feeling it might be the circuit... Can someone have a look and see if I am doing anything wrong, apart from stuffing up the order of the ISP pins... http://radio-active.net.au/temp/pic.png Should I just get the ISD2 from Microchip and be done with it? Darryl --------- Darryl Smith, VK2TDS POBox 169 Ingleburn NSW 2565 Australia Mobile Number 0412 929 634 [+61 4 12 929 634 International] www.radio-active.net.au\blog\ - www.radio-active.net.au\web\tracking From neilthomas at telkomsa.net Sat Dec 25 11:11:34 2004 From: neilthomas at telkomsa.net (Neil Thomas) Date: Sat, 25 Dec 2004 13:11:34 +0200 Subject: [picsig] Antenna rotator In-Reply-To: <1103491271.9766.11.camel@localhost.localdomain> References: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> <1102883243.4584.4.camel@localhost.localdomain> <1103491271.9766.11.camel@localhost.localdomain> Message-ID: <41CD4AE6.3070304@telkomsa.net> A blessed Christmas to you all. I have written an asm routine that should solve all your requirements. It can do the following: If a flag is set it can divide a 32bit number by a 15 bit number. If a flag is not set and you make the 15bit no = 10, it will convert the 32bit number into ten decimal digits that you can send to your display via an ascii look-up table. If you tink this could help let me know and I can mail you the listing. 73's Neil ZR2NT Andrew Rich wrote: > Hi, > > I have a potentiometer hooked up to a 16F877A. > > This supplies 360 Degrees rotation for 256 readings. > > My PC software supplies ASCII values from 1 to 360. > > How can I > > 1) handle the maths for 360/255 in assembly > 2) convert the ascii from the PC to a number I can use to compare to the > pot position ? > > another question I have is how do I convert a register value, say 92 > > into "9" and "2" I can send to a LCD. > > Cheers Andy VK4TEC > > > > > _______________________________________________ > picsig mailing list > picsig at lists.tapr.org > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > From vk4tec at tech-software.net Sun Dec 26 11:21:51 2004 From: vk4tec at tech-software.net (Andrew Rich) Date: Sun, 26 Dec 2004 22:21:51 +1100 Subject: [picsig] Antenna rotator References: <200412121931.iBCJVohh011201@outbound3.mail.tds.net> <1102883243.4584.4.camel@localhost.localdomain><1103491271.9766.11.camel@localhost.localdomain> <41CD4AE6.3070304@telkomsa.net> Message-ID: <000c01c4eb3d$1bd087c0$d92832d2@christinas> thanks neil any help would be greatly appreciated ----- Original Message ----- From: "Neil Thomas" To: "TAPR PIC Mailing List" Sent: Saturday, December 25, 2004 10:11 PM Subject: Re: [picsig] Antenna rotator > A blessed Christmas to you all. > > I have written an asm routine that should solve all your requirements. It > can do the following: > If a flag is set it can divide a 32bit number by a 15 bit number. > If a flag is not set and you make the 15bit no = 10, it will convert the > 32bit number into ten decimal digits that you can send to your display via > an ascii look-up table. > > If you tink this could help let me know and I can mail you the listing. > > 73's > > Neil ZR2NT > > Andrew Rich wrote: > > > Hi, > > > > I have a potentiometer hooked up to a 16F877A. > > > > This supplies 360 Degrees rotation for 256 readings. > > > > My PC software supplies ASCII values from 1 to 360. > > > > How can I > > > > 1) handle the maths for 360/255 in assembly > > 2) convert the ascii from the PC to a number I can use to compare to the > > pot position ? > > > > another question I have is how do I convert a register value, say 92 > > > > into "9" and "2" I can send to a LCD. > > > > Cheers Andy VK4TEC > > > > > > > > > > _______________________________________________ > > picsig mailing list > > picsig at lists.tapr.org > > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > > > > > > _______________________________________________ > picsig mailing list > picsig at lists.tapr.org > https://lists.tapr.org/cgi-bin/mailman/listinfo/picsig > >