Electronic Components Datasheet Search
  English  ▼

X  

PM9603AP Datasheet(PDF) 11 Page - Sames

Part # PM9603AP
Description  SINGLE PHASE POWER/ENERGY METERING MODULE
PDF  18 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  SAMES [Sames]
Direct Link  http://www.sames.co.za
Logo SAMES - Sames

PM9603AP Datasheet(HTML) 11 Page - Sames

Back Button PM9603AP Datasheet HTML 7Page - Sames PM9603AP Datasheet HTML 8Page - Sames PM9603AP Datasheet HTML 9Page - Sames PM9603AP Datasheet HTML 10Page - Sames PM9603AP Datasheet HTML 11Page - Sames PM9603AP Datasheet HTML 12Page - Sames PM9603AP Datasheet HTML 13Page - Sames PM9603AP Datasheet HTML 14Page - Sames PM9603AP Datasheet HTML 15Page - Sames Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 18 page
background image
PM9603AP
sames
11/18
int prt, buffindex = 0;
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();



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com