EmbeddedRelated.com
The 2024 Embedded Online Conference

Advice neede: Atmel or Philips ARM

Started by Meindert Sprang in comp.arch.embedded18 years ago 39 replies

Hi Gurus, I am switching from AVR to ARM. Currently, I use an ATmega162 which is running out of code space (16kB) and performance. But I find...

Hi Gurus, I am switching from AVR to ARM. Currently, I use an ATmega162 which is running out of code space (16kB) and performance. But I find it difficult to choose between Atmel's ARM (looking at the SAM7S series) and thePhilips LPC2104/5/6 series. I don't need many peripherals (yet). My current design uses an FTDI chip for USB, I could save that by using Atmel (Philips has no USB), but o...


programming atmega48

Started by Hul Tytus in comp.arch.embedded15 years ago 2 replies

comp.arch.embedded programming atmega48 The code below is intended to detect a rising transition on the external interput pin by sampling...

comp.arch.embedded programming atmega48 The code below is intended to detect a rising transition on the external interput pin by sampling the flag register but it doesn't work on an atmega48. With the ei-mask bit set (no sei), the code didn't detect a transition either. On an atmega162 this does work, however, and the documentation describes the functioning of the flags in the same...


global jumps and stack

Started by Arnim Zichner in comp.arch.embedded20 years ago 3 replies

Hello! I'm programming two ATmega162s which should do some communication via their USART-interfaces. I'm using the C-programming language with...

Hello! I'm programming two ATmega162s which should do some communication via their USART-interfaces. I'm using the C-programming language with the CodeVision AVR Compiler. I preferred C, because I do not have too much experience in programming in assembly language and to this point everything worked pretty good. But sadly a serious problem occured: My Programm runs in an endless loop ("m...


ATmega162V and STK500 kit

Started by Roman Mashak in comp.arch.embedded19 years ago 2 replies

Hello, All! I'm trying to program ATmega162V chip using AVR Studio 4. STK500 board is installed according to manual and i can program the...

Hello, All! I'm trying to program ATmega162V chip using AVR Studio 4. STK500 board is installed according to manual and i can program the sample chip provided with board without any errors or warning, but trying to burn the mega162v i get this error: FLASH contents differs from file Before burning I erased chip succesfully. Oscillator frequency and voltage value are setup by...


How to compare computing power of microcontrollers?

Started by Michael J. Noone in comp.arch.embedded19 years ago 7 replies

Hi - I'm trying to choose a microcontroller for a project I'm working on. Originally I had been thinking about using a 20Mhz Atmel AVR, such as...

Hi - I'm trying to choose a microcontroller for a project I'm working on. Originally I had been thinking about using a 20Mhz Atmel AVR, such as an ATMEGA168, but I became worried about the raw computing power of the AVR, as one of the main roles of this chip will be to do alot of 16 bit multiplication and trig at a fairly high speed. So I've been looking at using an ARM - specifically the Atm...


Atmega168 and peripheral interrupts

Started by P.Marek in comp.arch.embedded18 years ago 2 replies

I have a problem with an atmega168. On my test board I have a jumper on PB1 and a LED on PD5, using internal 8MHz RC-clock. Given the...

I have a problem with an atmega168. On my test board I have a jumper on PB1 and a LED on PD5, using internal 8MHz RC-clock. Given the following program: #include #include #include INTERRUPT(SIG_PCINT0) { unsigned short i; char j; for(j=0; j


GPIO on ATmega168 on pins PB6 (TOSC1) and PB7 (TOSC2)

Started by P.Marek in comp.arch.embedded18 years ago 2 replies

Hello everybody! I have a problem with ATmega168 (will later be an mega88) and PB6/PB7. I'm trying to use these as output pins, ie. drive...

Hello everybody! I have a problem with ATmega168 (will later be an mega88) and PB6/PB7. I'm trying to use these as output pins, ie. drive low-current LEDs by connecting PB6/PB7 via resistor and LED to +5V. That worked very good when I used PD5; but I need the PWM now and wanted to use PB6/PB7. I'm using the internal RC oscillator; timer 2 is currently unused, and if I need it later ...


compilers for Fujitsu 16b uCs?

Started by Mike Noone in comp.arch.embedded17 years ago 5 replies

Hi - I've recently identified some of Fujitsu's 16b microcontrollers, such as the...

Hi - I've recently identified some of Fujitsu's 16b microcontrollers, such as the MB90387 (http://www.fujitsu.com/us/services/edevices/microelectronics/microcontrollers/datalib/16bit/mb9 03851.html) as being a good match for a board I'm thinking about redesigning. My attraction to it is that it is 16b (while the uC I'm currently using, an Atmel ATMEGA168, is 8b), has built in CAN (while I'm us


programming atmega48/168's

Started by Hul Tytus in comp.arch.embedded16 years ago 5 replies

comp.arch.embedded programming atmega48/168's I have been programming an atmega168 for the the last few weeks with no trouble. Today an...

comp.arch.embedded programming atmega48/168's I have been programming an atmega168 for the the last few weeks with no trouble. Today an atmega48 was put in the 168's place, and the programming failed. From a quick look, there appeared to be a timeout when polling the flash af0ter a buffer had been written. That was a quick look at the end of the day, though. Has anyone here found di...


ATmega168 isp programming problem

Started by avr_guy in comp.arch.embedded16 years ago 1 reply

I've been using avr for quite some time now, but recently I encountered a problem programming atmega168 using ISP: set up- JTAG ICE mkII, ISP...

I've been using avr for quite some time now, but recently I encountered a problem programming atmega168 using ISP: set up- JTAG ICE mkII, ISP connector to atmega168 atmega168 uses internal oscillator nothing is connected to the reset pin except for the nSRST of mkII. For the first few tries, programming works fine for a fresh chip. The same code can be programmed to the chip more than on...


ANN: New ARM Cortex-M3 in Arduino format

Started by Tim in comp.arch.embedded15 years ago 4 replies

We have developed a board which has an ARM Cortex-M3 micro in the Arduino format. This is definitely not an official board, and by using a...

We have developed a board which has an ARM Cortex-M3 micro in the Arduino format. This is definitely not an official board, and by using a 72MHz 32-bit processor with 512KByte of Flash we guaranteed there would be a few changes from the 10MHz Atmel ATmega168 in the Arduino... But we tried to keep as close as possible to the Arduino spirit. At least the connectors are in the same places ...


Help for initializing a BW Graphic LCD module

Started by interrogativo in comp.arch.embedded15 years ago 2 replies

Hi all! I've an AVR ATmega168 connected to a G1212x02 from CCT : http://www.cct.com.my/Products/Graphic%20Module/PG58-G1212X02.pdf It embeds...

Hi all! I've an AVR ATmega168 connected to a G1212x02 from CCT : http://www.cct.com.my/Products/Graphic%20Module/PG58-G1212X02.pdf It embeds a NT7506 controller from Novatek. This chip needs alot of params: step-up voltage, resistors and so on. The LCD module datasheet doesn't explain too much. Can somebody help?


Getting started with AVR and C

Started by Robert Roland in comp.arch.embedded11 years ago 152 replies

I am quite used to playing with PICs and JAL v2. I use the PicKit3 for programming and debugging. Now I want to learn C and AVR. I thought it...

I am quite used to playing with PICs and JAL v2. I use the PicKit3 for programming and debugging. Now I want to learn C and AVR. I thought it may be a good idea to do both at the same time. I already have a device with an ATMEGA168 in it. I want to write my own firmware for this device. I have installed the Atmel Studio 6 and downloaded the data sheet for the '168. Now I need a progra...


ATmega169 rev number

Started by Phil in comp.arch.embedded20 years ago 4 replies

Can anyone help with Atmel ATmega169 rev numbers, I have two chips marked code 0339 and another 0352, is thisjust week 39 and week 52 of 2003?...

Can anyone help with Atmel ATmega169 rev numbers, I have two chips marked code 0339 and another 0352, is thisjust week 39 and week 52 of 2003? How can I tell what REV number are they? They both behave different so they are either REV B & REV C or REV C & REV D. Anyone help? Phil


AVR: Confused About an Array of Functon Pointers at Runtime

Started by the el vez in comp.arch.embedded17 years ago 9 replies

I have some code that I am running on an atmega169. I am building a static array of function pointers like so: typedef uint8_t...

I have some code that I am running on an atmega169. I am building a static array of function pointers like so: typedef uint8_t (*routine)(void); extern routine testRoutine; extern routine testRoutine2; routine routines[] = { (routine)&testRoutine, (routine)&testRoutine2 }; This compiles and links fine and at runtime


ATmega169 Puzzle

Started by Joel in comp.arch.embedded16 years ago 3 replies

Well a few days ago I was having trouble setting up a simple spi interface. Whenever I would try to lower the chip select lines of my devices the...

Well a few days ago I was having trouble setting up a simple spi interface. Whenever I would try to lower the chip select lines of my devices the 169 would try it and then give up and reset itself. I finally figured out that the problem was the pin I was trying to use. I was using PINB0 and PINB4 as chip select lines. B4 was the one giving me trouble so I switched it to B5 and the problem wa...


AVR, polling INT0 IRQ bit - help?

Started by larwe in comp.arch.embedded16 years ago 20 replies

I'm porting some old code that uses a pin-change interrupt flag as an edge detector. The new target micro is an AVR (ATmega169). I'm having real...

I'm porting some old code that uses a pin-change interrupt flag as an edge detector. The new target micro is an AVR (ATmega169). I'm having real trouble getting the INT0 logic to work like I think it should. I set DDRD = 0xe5 (INT0 is on bit 1 of port D), PORTD = 0x20, and EICRA = EICRA | ISC00_MASK | ISC01_MASK to look for positive edges. I see the input pin wiggling away, but (EIFR & (...


Attn: Ulf, Atmega169P-16MU

Started by linnix in comp.arch.embedded17 years ago 2 replies

Listen, Ulf: There are less than 500 in distribution channels: 300 in Digikey and 260 in All American. None in Arrow and Avnet. Digikey has...

Listen, Ulf: There are less than 500 in distribution channels: 300 in Digikey and 260 in All American. None in Arrow and Avnet. Digikey has more than 2000 last week (unless they lied), so our competitors got more than 1600 of them. Lead time are 8 weeks. We need 1000 ASAP, 2000 in November and 3000 in December, etc. If Atmel is not making them fast enough, we will have no choice but ...


JTAG muxed ADC channels on AVR?

Started by larwe in comp.arch.embedded14 years ago 15 replies

I'm using ATmega169P in an application and just came across a need for an additional two ADC channels (0-3 are in use). Unfortunately on...

I'm using ATmega169P in an application and just came across a need for an additional two ADC channels (0-3 are in use). Unfortunately on this part, ADC4-7 are muxed with JTAG pins. I've had no luck getting the micro to read those channels Is it necessary to disable the JTAG interface via fuse settings in order to use these upper ADCs? That's a real drag for me... means I have to dig out my...


Overclcok AtmegaL

Started by eeh in comp.arch.embedded18 years ago 13 replies

Hi, I am going to overclock Atmega16L to 12MHz. I can do that when the JTAG header is attached. However, when it is detached, the program...

Hi, I am going to overclock Atmega16L to 12MHz. I can do that when the JTAG header is attached. However, when it is detached, the program seems to be not working. I have tried to shut down the power of the emulator and it still works when the JTAG header is attached. I do not understand why this strange case happens. Could anyone talk to me why this happens? As I need to use 3.3V, I need t...



The 2024 Embedded Online Conference