Post Created date
Function that is not working
Clawson, Below is the main of the C program I am trying to write. I am using the SCP1000 pressure sensor code example to read the altitude of a model airplane. I am also trying...
Tuesday, 28 June 2011 - 20:40
Function that is not working
Clawson, I already solved the problem using the idea of sternst, but, really I would like to understand how doing it with a function. As I told before, I am starting learn C, so,...
Tuesday, 28 June 2011 - 18:29
Function that is not working
Thanks to both of you. I agree that the way you shown is much simpler. GPS_data[32] = (uint8_t )(*ptr >> 16); GPS_data[33] = (uint8_t )(*ptr >> 8); thanks, Best regards,...
Tuesday, 28 June 2011 - 15:27
USART Reading Problems
Bobgardner, below is the all the program. Thanks, Manuel /*************************************************************** **** This C-code example is for reference only. The...
Tuesday, 8 February 2011 - 21:49
USART Reading Problems
Just a quick information. I did a small program to read the GPS on USART0 and USART1 sends it to terminal. Every thing works. I revers the USART channels and no problem. I am goin...
Tuesday, 8 February 2011 - 21:15
USART Reading Problems
Jstwinkles, The Include files I am using are the following: #include #include #include #include #include Thanks. Manuel
Tuesday, 8 February 2011 - 18:15
USART Reading Problems
Clawson, I changed the code to use USART ISR as below: ISR(USART0_RX_vect) { volatile uint8_t GPS_Data[28]; static uint8_t rx_state = 0,data_count = 0; uint8_t received_byte...
Tuesday, 8 February 2011 - 16:24
USART Reading Problems
Clawson, I disable the CKDIV8 fuse and selected the SUT CKSEL to Ext. Crystal Osc. 8.0- MHz; Start-up time: 16K CK + 0 ms. I hink the fuses are seted correctly. Thanks Manuel
Tuesday, 8 February 2011 - 15:37
USART Reading Problems
Clawson, thanks for help. the CPU xtal clock is 18,432000MHz. In ATmega644P data sheet, the UBRR data is 29. I checked in the AVR studio and the data loaded into UBRR is 0x1D,...
Tuesday, 8 February 2011 - 14:53
USART Reading Problems
Stefan, Thanks for your help. I put the "{}" at the end of the while line and continue to the endless loop. volatile uint8_t GPS_data[28]; uint8_t n=1; static uint8_t...
Tuesday, 8 February 2011 - 11:01
USART Reading Problems
jstwinkles, Sorry I didn't put the USART set code in the previous reply. The set up code is below: void initialize_usart(void) { //Set the USART for a baudrate of 38400 UBRR0L=...
Tuesday, 8 February 2011 - 10:20
USART Reading Problems
Hello. Thanks for your replies. Yes, I have hooked up to an oscilloscope and the signal is there. If I change the routine to work with ISR there is no problem. Your help is...
Tuesday, 8 February 2011 - 10:11

Pages