GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering


GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 06-19-2002, 04:45   #1 (permalink)
Freak Poster
 
Join Date: May 2001
Location: .ma / .fr
Posts: 200
Member: 4520
Status: Offline
Thanks Meter: 0
PIC routines for serial communications


Hi,

can any body, give info. about serial communications at different baud rates using PIC microcontrollers (16F84 for example)

so, any info or source code of clip even old.. will be welcome

BR;

---
Majid
[email protected]
  Reply With Quote
Old 06-19-2002, 17:20   #2 (permalink)
Freak Poster
 
Join Date: Oct 2001
Location: Lithuania
Posts: 326
Member: 6744
Status: Offline
Thanks Meter: 0
Advice

Search for highlevel PIC compiler , (C language as example) , there will be already build in serial communication funtion's .
  Reply With Quote
Old 06-19-2002, 20:48   #3 (permalink)
Freak Poster
 
Join Date: May 2001
Location: .ma / .fr
Posts: 200
Member: 4520
Status: Offline
Thanks Meter: 0
is there a free C compiler for 16F628 ?

Thanks
  Reply With Quote
Old 06-19-2002, 23:39   #4 (permalink)
Freak Poster
 
Join Date: Oct 2001
Location: Lithuania
Posts: 326
Member: 6744
Status: Offline
Thanks Meter: 0
One more advice

Try to search .... and after www.astalavista.box.sk .......
  Reply With Quote
Old 06-20-2002, 01:15   #5 (permalink)
ZzX
Insane Poster
 
Join Date: Feb 2002
Location: Afganistan,Turkey
Posts: 80
Member: 9250
Status: Offline
Thanks Meter: 0
........

hi
you can with
4 mhz=posible to up 57600 boaund %0.0.1 error
8 mhz=posible to up 115200 boaund %0.1 error

rutin
SendChar232 ;
movwf SerByte ; store char to send out
movlw 8 ;
movwf BitsToGo ; # bits to send out
bcf TXpin232 ; send out start bit
movlw 0x56 ; [1] set length for start bit
Delay3W ; [258]
TXLoop232 ;
rrf SerByte ; [1]
btfsc STATUS,C ; [1] is it a 1?
goto TXOne232 ; [2] yes - send a '1'
bcf TXpin232 ; [1]
nop ; [1]
movlw 0x54 ; [1]
Delay3W ; [252]
decfsz BitsToGo ; [1]
goto TXLoop232 ; [2]
goto DoneByte232 ;
TXOne232 ;
bsf TXpin232 ; [1]
movlw 0x54 ; [1]
Delay3W ; [252]
decfsz BitsToGo ; [1]
goto TXLoop232 ; [2]
DoneByte232 ;
bsf TXpin232 ; [1] send out stop bit
movlw 0x54 ; [1]
Delay3W ; [252]
bsf TXpin232 ; idle state for TXpin
return ;









  Reply With Quote
Old 06-20-2002, 02:23   #6 (permalink)
Freak Poster
 
Join Date: May 2001
Location: .ma / .fr
Posts: 200
Member: 4520
Status: Offline
Thanks Meter: 0
@ Saulyss : I found C2C and PICC which one is good for 16F628 ans for serial comm.

@ ZzX : Thanks man for this source
but the source is not complete, how to change baudrate and the delay function misses ...

I searches on the net I found some routines but each one if for a baud rate/ frequency, and need to use some formula to calculate delays ....

I will try to search more

BR;
Majid
  Reply With Quote
Old 06-20-2002, 03:33   #7 (permalink)
Freak Poster
 
Join Date: Oct 2001
Location: Lithuania
Posts: 326
Member: 6744
Status: Offline
Thanks Meter: 0
Check ...

Check http://www.ccsinfo.com/ , i'm using this compiler , there a lot off built in function's I2C , SPI communication ....
  Reply With Quote
Old 06-20-2002, 03:36   #8 (permalink)
Freak Poster
 
Join Date: Oct 2001
Location: Lithuania
Posts: 326
Member: 6744
Status: Offline
Thanks Meter: 0
Also ..........

16F628 have build in hardware UART, so there u can avoid delay's and etc. And communcation can be completly interrupt based ....

Regard's
  Reply With Quote
Old 06-20-2002, 06:08   #9 (permalink)
ZzX
Insane Poster
 
Join Date: Feb 2002
Location: Afganistan,Turkey
Posts: 80
Member: 9250
Status: Offline
Thanks Meter: 0
.......

one calculate example you can modify
16F84 running at 10MHz - 9600 baud, 1bit=104uS => 260.4 cycles
  Reply With Quote
Old 06-22-2002, 01:43   #10 (permalink)
Freak Poster
 
Join Date: May 2001
Location: .ma / .fr
Posts: 200
Member: 4520
Status: Offline
Thanks Meter: 0
Thanks brothers for advices :-)

Majid
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking serial communication failed!.. ZV30 CEPHASTANESİ NSPRO 3 12-28-2006 23:52
E365 flashing / serial communication microera Redbox 4 06-05-2006 11:41
DirectCOM UFSx Hi-Speed Serial Communicator SuPeR_PoPeY Main Sales Section 0 07-09-2005 16:02
Bug in Serial communication? Hanukkah Griffin 1 09-30-2004 10:07
No Timeout error with serial communication any more chris922 Infineon C16X M51 & ARM7 M52 BASED 2 10-03-2002 11:00

 



All times are GMT +1. The time now is 04:27.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.29485 seconds with 9 queries

SEO by vBSEO