Show Posts
Pages: 1 ... 4 5 [6]
76  Forum 2005-2010 (read only) / Development / Conditional watchdog reset using time prescale on: January 06, 2011, 03:45:12 pm
Hello,

I am trying to modify a bootloader so that it has additional reset sources. I am working with a 328P Arduino.

The sequence I would like is as follows:
1. Perform watchdog reset in a sketch. (reference http://wiblocks.luciani.org/docs/app-notes/software-reset.html)
2. Mega resets
3. Bootloader starts.
4. Determine if watchdog reset, if so goto #5.
5. Evaulate watchdog timer prescaler in WDTCSR register. Depending on value->15ms, 30ms, etc execute condition 1, 2, etc.  

I haven't been able to get the timer prescale bit values in the WDTCSR register. Are these values reset when the Arduino resets? If I am unable to obtain these bit values, the only other way I can think of doing this is by writting to the EEPROM before and after reset.
77  Forum 2005-2010 (read only) / Development / Re: Arduino USB DTR line reset type? on: January 04, 2011, 09:30:27 am
Thanks for your help!
78  Forum 2005-2010 (read only) / Development / Re: Arduino USB DTR line reset type? on: January 03, 2011, 07:36:59 pm
Thanks Lefty,

Do you know if that is the same type of reset that happens when you press the reset button on the Arduino?

Thanks,

-ren
79  Forum 2005-2010 (read only) / Development / Arduino USB DTR line reset type? on: January 03, 2011, 05:48:42 pm
Hello,

After a sketch has been uploaded to the Arduino(328p) the board is reset by dropping the USB DTR line low. What type of reset is this, a EXTRF(External reset) reset or a PORF(Power-on) reset?

Thanks,

-ren
80  Forum 2005-2010 (read only) / Development / Re: ATMEGA328 mutliple serial ports on: May 24, 2010, 04:09:22 pm
Thanks for the replies. I only need qty. 1 hardware serial port. I will also need qty. 1 software serial port. What would be the best way to do this on the ATMEGA328?

Thanks,

-ren
81  Forum 2005-2010 (read only) / Development / ATMEGA328 mutliple serial ports on: May 24, 2010, 01:45:00 pm
Hello,

I am new to the Arduino, so I am still learning. I noticed on the serial reference page it indicated on the Arduino Mega that you could have multiple serial ports. Does the ATMEGA328 fall into the same category? If not, is it possible to use more than one serial port? Such as->

Serial1.begin(speed)
Serial2.begin(speed)

Thanks,

-renasis
82  Forum 2005-2010 (read only) / Troubleshooting / How do you debug an Arduino bootloader? on: December 17, 2010, 10:12:51 am
Hello,

I am working on modifying an existing Arduino 328 bootloader. I am using avrdude w/usbtiny to upload. Is there a way to debug the bootloader?  Is there a way to print to a serial the port? Or print to some sort of pc program? Could I include a library in the bootloader to get it to do this? Do I need to get a special diagnostic programmer to do this?

Thanks,

-ren
83  Forum 2005-2010 (read only) / Interfacing / Re: Arduino SPI default settings? on: December 15, 2010, 08:31:36 pm
Thanks James that will get me started!
84  Forum 2005-2010 (read only) / Interfacing / Re: Arduino SPI default settings? on: December 15, 2010, 02:08:30 pm
I guess I will rephrase my question since I am not getting any responses. Let's say I get an Arduino 328 at the store. Is the SPCR register clear or set to enabled?

The Arudiuno will not have SPI enabled unless I load a sketch / library which sets the SPRC register and enables SPI, correct?  If I load a sketch which uses SPI will those changes remain when the Arduino reboots. Lets say I change sketch to "Blink", will the SPCR still be set to enabled?

If I enable SPI by making the appropriate changes to the registers. What would I need to clear all of these SPI settings?

Thanks,

-ren
85  Forum 2005-2010 (read only) / Interfacing / Arduino SPI default settings? on: December 14, 2010, 08:21:25 am
Hello,

Where are the default settings of SPI set on an Arduino with a 328p MCU? Are they in the bootloader? What are the values for the SPCR? I know cs 10, mosi 11, miso 12, and clock 13. Is cs set to output or input initially? Is cs set to high or low initially? What is the default clock speed?

Thanks,

-ren
Pages: 1 ... 4 5 [6]