I am not able to communicate with my ADUC7020 evaluation kit through hyperterminal. I mean I always land up getting junk character and that also at a baud rate of 4800. Can someone help me?
What board are you using - MiniKit or QuickStart ?What connection do you use between the board and the PC ?
I moved this question to the Analog Microcontrollers community. Please continue the discussion here.
EngineerZone Community Manager
I am using minikit and I have a usb to RS-232 connection made to the minikit.
So you use PC <=> USB-RS232-Converter <=> PC-Interface-Cable for the MiniKit (4-Pin) <=> (4-Pin) ADuC7020 MiniKit
If this is correct, than did you use ARMWSD to download a HEX-File to the MinKit ?
Yea thats right. I have used the ARMWSD software to dump my code into ADUC7020.
I have change the the value of PLLCFG value in the startup file to 0x00000001. Doing this, the hyperterminal receives junk character and sometimes the character which I had to. The baudrate had to be kept at 4800 and not at 9600.
If you do this, than you need to config the baudrate for the UART on the ADuC702x accordingly - you can run it - specifically with USB to RS232 Converters up to nearly 1Mbps - I tried with success.
What was the value for PLLCFG u had chosen? I had configured UART to 9600 but the hyperterminal responsed only to 4800. With that also, I could get the data sometimes, most of the time I would get junk character.Should I paste my code and the start file here for you to have a better picture of the same?
You have to set POWCON for the core speed (CD-bits) and related to this you have to set the UART baud rate in COMDIV0 and COMDIV1 (DL) or for the enhance baud rate in COMDIV2. So for CD = 0 (41MHz core clock) and 921.6kbps this is
COMDIV0 = 0x01; // 921600 BaudCOMDIV1 = 0x00;COMDIV2 = 0x8B55; // Fractional Timer
This was somewhat useful. I wrote somewhat because I am able to communicate with hyperterminal at 9600 but the data received is junk.I made changes to my code as per your reply. I am attching my code, the startup file and the hyperterminal output for further analysis.
in the startup CD is set to 1 and the baud rate from my example is 921600 Baud = 921.6kBaud rather then 9600 = 9.6kBaud
So do I need to change the value of PLLCFG to 0x00000000, changing the value of CD to 0.And what should be done for the baud rate?
Sorry for the previous reply. I almost found the solution here but I want to know the values of M and N? During the calculation of fractional divider, are the values always taken in decimal? And also the value of DL?
Acoording to me, the values should be M=1, N=1365 and DL=1. Are they right?
What are the values POWCON and PLLCON are to set at?
Hi I have a question:
I am running aduc7020 with 1 MHz with CD bit 5. I set the dL=4 according to that for 9600 baudrate. but it doesn't work. On datasheet it never mention about the CD = 5.
Can you throw some light on this.
Retrieving data ...