Thanks for the info but since I am fairly new to this field, can you guide me as to where I can read about TTL & RS-232 type signals and difference between them.
Thanks for the info but since I am fairly new to this field, can you guide me as to where I can read about TTL & RS-232 type signals and difference between them.
Dave
Always wear safety glasses while programming.
On google or wiki
RS232 standard:
logic "1" is -3 to -15V
logic "0" is 3 to 15v
-3 to 3 is not defined
TTL standard:
logic "1" is 2 to Vcc (usually Vcc=5V)
logic "0" is 0 to 0.8V
Edit:
0.8 to 2V isn't defied
Last edited by pedja089; - 28th September 2009 at 22:35.
Thanks. I am trying to send an SMS using TC35i & 16F690. I tried to replicate the schematic at this link: http://techni.caliti.es/blog/2008/12...ontroller.html
I used the pins 10 & 12 of 16f690 instead of 17 & 18 of 16F873. Hope it will work![]()
If you have in mind to use the downloaded software, the answer is IT WILL NOT WORK.I used the pins 10 & 12 of 16f690 instead of 17 & 18 of 16F873. Hope it will work
If you will write your own software the answer is YES IT WILL WORK.
Al.
All progress began with an idea
With pic 16F690 you need to turn off analog port to make them digital. You will accomplish this with the following instruction:Any advise as to how to set up the registers, correctly for 690?
In my project I have used 8 ports as inputs and 8 ports as output. 690 doesn't have all these ports available, so you will decide how many inputs and how many outputs to use. Remember to set the TrisA; TrisB and TrisC registers accordingly.Code:ANSEL = 0 : ANSELH = 0
Al.
All progress began with an idea
Here is my code:
OSCTUNE=%01111 ' Oscillator 8MHz
intcon=0 ' Interrupts disabled
cm1con0=0 ' Comparator 1 disabled
cm2con0=0 ' Comparator 2 disabled
ansel=0 ' Pins to be Digital
anselh=0 ' Pins to be Digital
baud con 16468 ' baud rate = 9600 Inverted
trisc=%00000000 ' Port C I/O
trisb=%01111111 ' Port B I/O
trisa=%000000 ' Port A I/O
portc=0 ' Setting port c Low
portb=0 ' Setting port b Low
porta=0 ' Setting port a Low
i var byte ' Declaring variable
c var byte ' Declaring variable
tx var Portb.7 ' Declaring tx pin
rx var Portb.5 ' Declaring rx pin
Include "modedefs.bas"
main:
Serout2 tx,baud,["AT+CMGF=1",13]
gosub one
Serin2 rx,baud,5000,main,[wait("OK"),i]
gosub two
goto main
one:
for c=1 to 5
portc=255
pause 20
portc=0
pause 20
next c
return
two:
for c=1 to 5
portc=255
pause 400
portc=0
pause 400
next c
return
My Problems:
1) My led connected to portc only goes high ONCE in label one though it should enter label one every 5000mS.
2) It never enters label two as I assume there is somthign wrong in the communication part of PIC with the modem.
Please help me find out what am I doing wrong here?
Bookmarks