Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

EW AVR and pointer - how to initialize it?

Status
Not open for further replies.

002

Member level 1
Member level 1
Joined
Nov 12, 2001
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Italia
Activity points
162
avr pointer 0x1100

How do I initialize a pointer?


char *SJA1000 = 0x1100;

So it doesn't go.
 

hi,

i also programming my avr in C:

char* pointer;
pointer=&array[0];
^-adress of the first
element of an array

it works fine.

regards.
 

I need to read from the address 0x1100.
 

This way it goes.


char *SJA1000 = (char*)0x1100;
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top