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.

j.sivaraj

Newbie level 5
Joined
Dec 28, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,323
how to declare string and hex value in the c array
 


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..
 

#include<stdio.h>
#include<string.h>

void main()
{
char string_[10];
while(1)
{ }
}
 
Last edited:

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
 

it work,

explain about the ADS1232 with any controller
 

Explain how to access the bit-banging in the serial SPI ADC
 

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