From: Dennis C. <den...@gm...> - 2011-01-30 22:16:24
|
Hello All, I recently decided to try Amforth, but I have run across an odd issue and was hoping someone could point me in the right direction. I took the template project and set it up for an atmega168. The issue I am having is that I can't seem to get the serial port to run at the speed I request it to. I finally did get the serial port sort of working by requesting a baud rate of 2400 and then setting my terminal program to be 300 baud. Every other speed that I tried just gave me garbage on screen. 300 baud works, but boy is it slow :) I am using an external 10Mhz clock. I have the F_CPU setting in the template.asm set to 10000000. I tried the default internal oscillator at 8Mhz to start with, but had no success until I tried the external clock. I am thinking that perhaps there is another location that has a setting for the CPU frequency other than the template.asm file? Thanks for any assistance you can provide. Dennis |