Post Created date
tiny basic interpreter
Quote:...but since you can get chips like AVRs and ARMs and such with 64k+ flash, it wouldn't need to be that small But IMHO it does only make sense in a 'small' chip with not too...
Saturday, 4 November 2006 - 09:44
AVR C -Compilers differences
I have just done an evaluation of some of the well-known compilers for the AVR on _one single_ '8k' project (means that the code size will be around 8k flash). This project...
Monday, 30 October 2006 - 21:24
Circular Buffer in EEPROM
Quote:.. we need to put FF in some bytes by PC.. ?? I use 0xFF as a marker for free event buffer because this is the default value for an erased EEPROM cell. So this is true...
Sunday, 29 October 2006 - 15:27
Circular Buffer in EEPROM
lfmorrison: I could not have explained it better! What I mostly do is still a bit different. As I want to have permanent (fast) access to all event data, I use a copy of the...
Sunday, 29 October 2006 - 09:51
Circular Buffer in EEPROM
If you want to store events which occupy e.g. 5 bytes per event and want to store 100 events, I use the following approach: - use a 'buffer' in EEPROM big enough for 101 events -...
Friday, 27 October 2006 - 13:53
Problems with Optocoupler and UART
This is how I do simple optical isolation for RS232. No need to power the PC side. The only thing you have to do for the circuit to function is to set RTS on the PC side ( this...
Thursday, 26 October 2006 - 18:34
Dual CAN?
For a long time the combination of an AVR (AT90S8515) with an SJA1000 was one of the cheapest CAN solutions possible. We have used that on a number of medium scale (1-10k)...
Friday, 20 October 2006 - 22:44
Dual CAN?
CAN2.0b is a superset of CAN2.0a. To be precise, the MCP2515 is 'CAN2.0b active' compliant, meaning that it is able to transmit _and_ receive standard 11-bit _and_ extended 29-bit...
Thursday, 19 October 2006 - 17:25
optimizing code
Quote:Sounds like a job for the SPI to me.... That's true, but sometimes these beasts are not really SPI-compatible. It may also take much more time to read the documentation and...
Monday, 16 October 2006 - 18:36
optimizing code
Unfold the loop over the 12 bits. unsigned char outl = 0; unsigned char outh = 0; strobe; if ( bit_get(PINF, BIT(ADC_DOUT)) ) outh |= 0x08; strobe; if ( bit_get(PINF...
Sunday, 15 October 2006 - 18:44
optimizing code
Take a look at the generated code first (ASM listing). Should give some clues. Be sure that strobe() is inlined and not called as a function. Better define it as a macro. There...
Sunday, 15 October 2006 - 15:35
Codevision - 2 Bytes to 16bit Integer
Quote:If, however, you need to pack as much into a Mega48 as practical ....then better use the XXX compiler! :D :D I have just again done some tests with an '8k-project' and...
Sunday, 15 October 2006 - 08:58

Pages