Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

EW AVR and pointer - how to initialize it?

Status
Not open for further replies.

002

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.
 

revolt

Full Member level 2
Joined
Feb 3, 2002
Messages
121
Helped
4
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
1,008
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.
 

002

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
I need to read from the address 0x1100.
 

002

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
This way it goes.


char *SJA1000 = (char*)0x1100;
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top