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.

How to declare Array in the form of Hex and string

Status
Not open for further replies.

Code C - [expand]
1
char array[]={0x61,0x62,0x63};




Code C - [expand]
1
char array[]={'A','B','C'};




Code C - [expand]
1
char array[]="ABC"; // In this case a extra /0 will be added as 4th element



the size of the array will number of elements given..
 

Thank you so much

but,
i need to declare string and hex value in the single array

Example:

char arrry[] = {"AD01", 0xD3, 0xFE};// This statement true or else
 

software SPI is comparatively easy you have to generate 3 signals and poll one signal..
You have to generate
SS - slave select
MOSI - Master out slave input
SCLK - serial clock

after that you have to get the input
MISO

first of all you have to understand how SPI works and then you can learn **broken link removed**.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top