Post Created date
Macros to simplify pin's management
wzab66, you could also have a look at my generic approach for GPIOs: https://www.avrfreaks.net/index.php?module=Freaks%20Academy&func=viewItem&item_type=project&...
Sunday, 19 February 2012 - 17:18
Minimum delay with _delay_us() ?
You could als have a look at the projects section 'delay_x.h': https://www.avrfreaks.net/index.php?module=Freaks%20Academy&func=viewItem&item_type=project&item_id=665...
Tuesday, 3 January 2012 - 21:11
i2c SCL Question
How about pull-up resistors? You either need external resistor or enable AVR-internal resistors. HJ
Sunday, 14 November 2010 - 16:01
memcpy problem
You did not mention which AVR device you are using. But be aware that you created 3x255 + 255 ~= 1KB (on the stack). Depending on the AVR type this will exceede the RAM size! Best...
Saturday, 6 February 2010 - 10:03
Falling edge detection with pin change interupt
Quote: SIGNAL(PCINT2_vect) { if( bit_is_clear(PORTD,6) ) { //Do something } } must be changed to SIGNAL(PCINT2_vect) { if( bit_is_clear(PIND,6...
Tuesday, 3 November 2009 - 18:32
I need some help understanding how to set my own I2C address
Several of my projects use an "analog strapping". I implement an individual resistor divider per device and connect it to one of the analog inputs. Then after reset I perform an...
Thursday, 8 October 2009 - 21:28
how to count a cycle of code [ and Dream cast coding ]resvd
You could als have a look at this project: https://www.avrfreaks.net/index.php?module=Freaks%20Academy&func=viewItem&item_type=project&item_id=665 The macro...
Sunday, 19 July 2009 - 09:44
Header file debug
Thanks for the feedback. I'am aware of option -E, but was looking for an easier way. Best regards, HJ
Saturday, 22 November 2008 - 21:30
delay function - calculating compensation
Quote: yossip wrote: I'm using a delay function which needs to be as accurate as possible Thats (almost) impossible with the delay function. The only way for accurate timing was...
Sunday, 17 August 2008 - 20:50
Macros for DDR and PORT from pin name?
Hi all, what you trying to implement is some kind of hardware abstraction. You could als have a look at this project in the projects section: https://www.avrfreaks.net/index.php?...
Tuesday, 29 July 2008 - 22:46
SPI slave code request
izual, is your real code different from the one provide here? The code you show here cannot receive a single byte because the condition in the while expression is always 0...
Saturday, 14 June 2008 - 20:08
SPI slave code request
Try this to check whether SPI-slave has data available: while( !(SPSR&(1<<SPIF)) ) /* Wait and... */ ; Best regards, HJ
Saturday, 14 June 2008 - 15:36

Pages