Introduction - If you have any usage issues, please Google them yourself
#include <iom48v.h>
#include <macros.h>
// #ifdef _OPTIMIZE_SIZE_
// #pragma optsize+
// #endif
}
void Output1(void)
{
unsigned char DataByte;
SckDisLow;
RckDis1Low;
for(DataByte = 0x80; DataByte != 0x00; DataByte >>= 1)
{
if(DataByte&ByteOut1)
DataDisHigh;
else
DataDisLow;
SckDisLow;
SckDisHigh;
}
RckDis1High;
RckDis1Low;
}
void Output2(void)
{
unsigned char DataByte;
SckDisLow;
RckDis2Low;
for(DataByte = 0x80; DataByte != 0x00; DataByte >>= 1)
{
if(DataByte&ByteOut2)
DataDisHigh;
else
DataDisLow;
SckDisLow;
SckDisHigh;
}
RckDis2High;
RckDis2Low;
}
// 0: release 1~9: putout :: all putout /: keep
void NeedleOut(unsigned char IDNeedle)
{
switch (IDNeedle)
{
default:
case '0':
ByteOut1 = 0;
ByteOut2 = 0;
DR8Low;
CT8Low;
CT9Low;
break;