View previous topic :: View next topic |
Author |
Message |
karth
Joined: 10 Sep 2003 Posts: 29
|
PIC18F452 to bigger PIC pic18f4525 |
Posted: Wed May 21, 2008 1:23 pm |
|
|
i am using Version 3.246 Compiler. I am switching the MCU from PIC18F452 to Pic18F4525. And i am having problem switching from UART to EUART (FULL DUPLEX MODE). can any body give any suggestion regarding |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
|
karth
Joined: 10 Sep 2003 Posts: 29
|
I looked at the erata |
Posted: Wed May 21, 2008 2:31 pm |
|
|
The only one is TRIS register but that does not work!!!
need help!!!
this is all the fuses
#include <18F4525.h>
#device adc=10
#fuses NOWDT,WDT128,HS, NOPROTECT, IESO, BROWNOUT, BORV21, NOPUT, NOCPD, STVREN, NODEBUG, NOLVP
#use rs232(baud=4800,xmit=PIN_C6,rcv=PIN_C7,bits=8,parity=N,BRGH1OK,ERRORS)
set_tris_c(0xBC);//added |
|
|
Guest
|
|
Posted: Wed May 21, 2008 4:50 pm |
|
|
Are you saying you can't do a set_tris_c() command?
Are you sure you need the BRGH10k in the serial statement?
Are you doing any funny 9bit stuff? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed May 21, 2008 6:00 pm |
|
|
Try a simple program that receives characters typed in a terminal
window and sends them back to the PC. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=34127&start=1
Modify it for your PIC. Test it. If it doesn't work, then post your modified
program and explain how it fails. |
|
|
karth
Joined: 10 Sep 2003 Posts: 29
|
|
Posted: Wed May 28, 2008 7:50 am |
|
|
yeah i tried, that it does not work,
i believe the reason is because i am powering the MCU with 3.4V with 20mhz resonator.and I believe 18F4525 is a 5V part >???I am going to try 18LF4525 |
|
|
|