Type in the full discussion title or a part of it.
Discussion Title Created date
about automatic round off calculation
Hi, guys, I got a doubt about the automatic round off calculation for convert FLOAT to SHORT INT. Say, i and j are float, and k is short int, then: k = i / j; It seems C will...
Sunday, 9 July 2006 - 07:06
what's the C code for ROR and ROL
I wanna find a faster way to do: conversion_result = SPDR << 6; and then i found ROR and ROL, but what's the C code for this rotation shift?[/code]
Thursday, 6 July 2006 - 10:27
about the efficiency of _delay_us() standard function
hi, guys, just found out that _delay_us() is not so efficient for very short delay, say, 1us. what's the lower limit of delay length you suggest to use this function then?
Thursday, 6 July 2006 - 07:29
how to write comment in the macro
hi, guys, another simple question: I just found out that if i want to predefine a function as a macro, for example: #define CPU_PORT_INIT() \ do { \ PORTA |= 0x01; \ DDRA...
Wednesday, 5 July 2006 - 20:24
about dtostrf warning
hi, guys, just a simple problem: I defined USART_string as volatile unsigned char USART_string[12]; and in a interrupt routine, i wrote: dtostrf(Rx_Message.distance, 6, 2,...
Tuesday, 4 July 2006 - 08:23
about Bitwise operations automatically change operand to int
Hi, guys, I just notice the FAQ question from avr-libc website: Why does the compiler compile an 8-bit operation that uses bitwise operators into a 16-bit operation in assembly?...
Friday, 30 June 2006 - 09:53
Problem about migrating from old INTERRUPT routine to ISR
Hi, folks, I got a problem about the migrating from old INTERRUPT routine to the new ISR routine. I'm using WINAVR 20060421 now and my old code wrote like: INTERRUPT (SIG_ADC...
Tuesday, 20 June 2006 - 21:45
asking for solutions of SPI communications over long cable
Hi, guys, I got a problem, i want to connect two 16MHz AVRs by SPI or USART over upto 5m distance, and i want this interface running at the full speed. I let the master generate...
Wednesday, 31 May 2006 - 09:58
Help! better way to remedy my stupid mistake
Hi, guys, I just found out that i made a stupid mistake on my PCBs ( more than 100 of them): I connected RXD1 and TXD1 from Mega128 to RXD and TXD on CP2101, a USB to UART bridge...
Monday, 15 May 2006 - 21:37
asking C code for checking external SRAM
Hi, guys, I just put the new external 32KB SRAM for my Mega128L, and I never use external RAM before, so anyone have the simple C code for testing if the external one is working?...
Tuesday, 9 May 2006 - 16:11
about synchronize Timer1 and Timer3 in Mega128
Hi, guys, I want to synchronize Timer1 and Timer3 in Mega128 and below is my code, it is in the begining of main function. Is it correct? TCCR3B = _BV(ICES3) | _BV(CS30); //...
Friday, 31 March 2006 - 08:38
about read 16bit register in Mega128
Hi, guys, if I start Timer1 and just interested in ICR1H, but in the C code, I still have to read ICR1L first, right?
Thursday, 30 March 2006 - 11:10

Pages