Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 29, 2024, 11:18:33 11:18


Login with username, password and session length


Pages: [1]
Print
Author Topic: I NEED HELP WITH SERIAL 18F4520  (Read 3155 times)
0 Members and 1 Guest are viewing this topic.
chacacampeon
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 25
-Receive: 21


« on: June 28, 2007, 09:49:45 21:49 »

THIS IS  THE QUESTION, HOW I CAN ERASE THE RCREG OF 18F4520 USING RPOTON_METAL, I CAN COMMUNICATE WITH ANOTHER PIC, BUT CANT ERASE THIS REGISTER TO RECEIVE OK THE INCOMING DATA.
Logged
raraavis
Newbie
*
Offline Offline

Posts: 13

Thank You
-Given: 7
-Receive: 12

Buenos Aires - Argentina


« Reply #1 on: June 29, 2007, 12:21:59 12:21 »

Try this,

To Clean RCREG,

Code:
RCREG = 0

Regardess  Cool
Logged
chacacampeon
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 25
-Receive: 21


« Reply #2 on: June 29, 2007, 04:03:19 16:03 »

Thanx, but I prube that.

I also prube this code, that i find in the ASM section:

Code:
asm
         bcf CREN
         movfw RCREG
         movfw RCREG
         movfw RCREG
         bsf CREN

Regards  Cry
Logged
chacacampeon
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 25
-Receive: 21


« Reply #3 on: June 29, 2007, 08:15:56 20:15 »

 ;)I find the problem, this code dont work:

Code:
hserin [STR String] ' were String is an array of 13 position 

Replaced with:

Code:
for i = 0 to 12
         hserin [Serdata]
         String[i] = Serdata
         next i

PD: hserin [STR String] work OK in 18F252

Regards

Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC