|
|||||||
![]() |
Forum Index > General > Ask an Evil Mad Scientist! | ||
Crystal |
|||
| | | Printable Version |
|
Anonymous: linxdev@gmail.com | ||||||||
|
Just received an envelope of goodies. Got the Zif Mini Development kit. |
|
||||||||
|
|||||||||
|
Windell | ||||||||
|
First, you probably know this, but if you do add a crystal, you usually also need to add two small matching capacitors as well, and locations are provided on the PCB. And then yes, you do need to change the fuse values on the AVR in order to change the clock selection. With the crystal in place, it can either use that crystal or continue to use its internal RC oscillator, depending on the fuse values that you select.
And, if you haven't seen it, the fuse calculator is awesome. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
|
Okay, If I understand this right that kit includes the 328 with the fuse already set to use only the internal clock. I'll build my circuit before I change this. |
|
||||||||
|
|||||||||
|
Windell | ||||||||
Okay, If I understand this right that kit includes the 328 with the fuse already set to use only the internal clock. I'll build my circuit before I change this. Yes, the fuse settings should be factory-default. IIRC, that's running from the 8 MHz internal oscillator, with the divide-by-8 option set, for a net frequency of 1 MHz. I have a ISP header and I have an AVRISP MKI (serial) flasher. Is there any danger of overwriting the bootloader on the chip provided by EMS?If this is a chip that came with a mini-dev kit, there should not be a bootloader on it. And in any case, if you have an AVR ISP programmer, you can add a new bootloader whenever you like. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
|
I'm stuck and I'm not quite sure what I should do. PHP Formatted Code void setup() { delay(1000); Serial.begin(9600); } void loop() { Serial.println("TEST"); delay(1000); // wait for a second }
PHP Formatted Code 0x54(T) 0x53(S) 0x0D 0x54(T) 0x0D 0x54(T) 0x0D 0x54(T)
PHP Formatted Code avrdude: safemode: lfuse reads as FF avrdude: safemode: hfuse reads as D9 avrdude: safemode: efuse reads as 5
|
|
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
|
I'm really miffed now. PHP Formatted Code void _blink(unsigned int d) { digitalWrite(13, HIGH); delay(d); digitalWrite(13, LOW); delay(d); } void setup(void) { delay(1000); Serial.begin(9600); pinMode(13, OUTPUT); _blink(125); _blink(125); _blink(125); } void loop(void) { Serial.println("TEST"); _blink(1000); }
|
|
||||||||
|
|||||||||
|
Windell | ||||||||
I've tried two TTL to serial converters. One MAX232 to serial and the other the PL2303 to USB. Same results. If I drop speed down to 1200 it works fine. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Windell | ||||||||
Quote by: linxdevI'm really miffed now. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
|
Both TTL adapters work with other devices. One was used to control a radio using software. The other I had installed in a GPS receiver for my car and cut it out of that circuit to try on this. |
|
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
|
4.9v off USB bus on computer. |
|
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
|
|
|
||||||||
|
|||||||||
|
Windell | ||||||||
Both TTL adapters work with other devices. One was used to control a radio using software. The other I had installed in a GPS receiver for my car and cut it out of that circuit to try on this. OK-- great. It might still be worth trying a "loopback test" (serial-TTL-serial) with the two of them. Windell H. Oskay drwho(at)evilmadscientist.com http://www.evilmadscientist.com/ |
![]() Evil Scientist ![]() Status: offline
Registered: 06/15/06 |
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
![]() Could you try talking to the UNO with your two serial interfaces? D0 and D1 should be accessible, and lightly isolated (through 1k resistors) from the 8U2.
|
|
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
Quote by: linxdev![]() Could you try talking to the UNO with your two serial interfaces? D0 and D1 should be accessible, and lightly isolated (through 1k resistors) from the 8U2.
|
|
||||||||
|
|||||||||
|
Anonymous: linxdev | ||||||||
|
I'm really curious as if it could be an issue when compiling. I'm not using the IDE. I've got a Makefile and am using VIM as my IDE. I spent the time to figure out how to do it on the CLI after a day of using the IDE. I have been programming the UNO using CLI too. PHP Formatted Code void _blink(unsigned int d) { digitalWrite(13, HIGH); delay(d); digitalWrite(13, LOW); delay(d); } void _print(char *m) { char *ptr; for(ptr = m; *ptr; ptr++) { Serial.print(*ptr); delay(50); } return; } void setup(void) { delay(1000); Serial.begin(9600); pinMode(13, OUTPUT); _blink(125); _blink(125); _blink(125); } void loop(void) { _print("TEST\r\n"); _blink(1000); }
|
|
||||||||
|
|||||||||
|
|
| All times are PDT. The time is now 10:48 PM. |
|
|
Octolively
Interactive LED kits
Meggy Jr RGB
LED matrix game
development kit.
Business-card sized
AVR target boards
Peggy 2
LED Pegboard kits