DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PM9603APE 查看數據表(PDF) - South African Micro Electronic Systems

零件编号
产品描述 (功能)
生产厂家
PM9603APE
Sames
South African Micro Electronic Systems Sames
PM9603APE Datasheet PDF : 18 Pages
First Prev 11 12 13 14 15 16 17 18
int prt, buffindex = 0;
PM9603AP
double convert_24bits(double value)
// This function will sort out the 24 bits of the register
values
{
if (fabs(value) > 0x7FFFFF)
{
if (value > 0)
value = (16777216-value) * (-1);
else
value = (16777216+value)* (1);
}
return(value);
}
void spi_wait(void)
// This function will wait for the specified period, very
short time
{
int ti;
for (ti = 1; ti < 1 ; ti++);
}
void spi_out(unsigned char value)
// Put value on the parallel port
{
int n;
portval = value;
outport(prt,(~portval));
// Remove the ~ if you dont use opto couplers
for(n=0 ; n< delay_time ; n++); // Specify the pulse
width
}
void spi_clock(void)
// This function will pulse CLK pin of spi port
{
spi_wait();
spi_out(portval | CLK_b); // or
spi_wait();
sames
11/18

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]