Type:Logic ICs
Condition:New
 | The baby participation:[ Free shipping] Time: 2014-01-06 12:36 --2014-03-07 12:36 Single orders over98Yuan shipping,Chinese mainland shipping, Hong Kong, Macao , Taiwan and overseas shipping is not automatically change the postage photographed |
[ Brief description]
A , Size: 25mm long 150mmX wide 122mmX high
Second, the main chip : AT89S52 microcontroller ( or STC89C52)
Third, the working voltage: 24 volts
Four , ten -pin microcontroller standard download interface . ( You can use the parallel port download cable and USB download cable to download )
Five characteristics : 1, with power indicator .
2 , eight optically isolated incoming signals .
3 , eight optically isolated output control relay output
4 , the standard 11.0592M crystal.
5 , with a power-on reset and manual reset.
6 , support AT89SXX family of microcontrollers.
7 , with a power failure , the chip 24C08.
8 , enter eight have LED indication.
9 , the output of eight with a LED indicator .
10 , eight 24V relay control , control equipment.
11 , can be controlled AC 220V / 10A look at the device.
12 , with the serial communication function ( can overriding control ) . Six , a detailed manual
Seven , to provide relevant software
Eight , providing routine and learning materials Enter the section labeled [ description]

Output section labeled [ description]

[ Host Interface ]( Source code )

[ Testing program ]
/ ************************************************* *******************
Xpress Technology
Function: This version supporting test program
Use chip : AT89S52
Crystal : 11.0592MHZ
Baud Rate: 9600
Compiler Environment : Keil
Author : zhangxinchunleo
Website:ourhc.cn
Taobao shop: Xpress Technologyshop36330473.taobao.com
[ Disclaimer ] This procedure is used only for study and reference , please indicate the copyright and author information !
************************************************** ******************* /
/ ************************************************* *******************
SCM and PC using a 9-pin serial port , MAX232 communication baud rate defaults to 9600 .
MCU receives the PC sends a hex code table as follows :
01 , full : PC sends 0xFF; SCM return 0XFF;
02 , all off : PC sends 0X00; SCM return 0X00;
03 , the first road open : PC sends 0x01; SCM return 0X01;
04 , the second road open : PC sends 0x02; SCM return 0X02;
05 , the third road open : PC sends 0x03; SCM return 0X03;
06 , the fourth road open : PC sends 0x04; SCM return 0X04;
07 , the fifth road open : PC sends 0x05; SCM return 0X05;
08 , the sixth road open : PC sends 0x06; SCM return 0X06;
09 , the seventh road open : PC sends 0x07; SCM return 0X07;
10 , the eighth road open : PC sends 0x08; SCM return 0X08;
11 , the first road off : PC sends 0xFE; SCM return 0XFE;
12 , the second road off : PC sends 0xFD; SCM return 0XFD;
13 , the third road off : PC sends 0xFC; SCM return 0XFC;
14 , the fourth way off : PC sends 0xFB; SCM return 0XFB;
15 , the fifth way off : PC sends 0xFA; SCM return 0XFA;
16 , Sixth Road, Off : PC sends 0xF9; SCM return 0XF9;
17 , the seventh road off : PC sends 0xF8; SCM return 0XF8;
18 , the eighth road off : PC sends 0xF7; SCM return 0XF7;
19 , input status query : PC sends 0x55; SCM returns the output state ( return value in hexadecimal ) ;
20 , the output status query : PC send 0xAA; SCM returns the output state ( return value in hexadecimal ) ;
21 , the output negated instruction : PC sends 0X11; SCM return 0x11;
************************************************** ******************* /
#include
#define uchar unsigned char // macro definition unsigned char
#define uint unsigned int // macro definition unsigned integer
/ ************************************************* *******************
The initial definition
************************************************** ******************* /
uchar sj; // storing data values
bit write = 0; // write 24C08 logo ;
uchar dat = 0xee; // for storing MCU receives the transmit buffer register SBUF contents inside
/ * Define eight out of the microcontroller P2 port * /
sbit K1 = P2 ^ 0;
sbit K2 = P2 ^ 1;
sbit K3 = P2 ^ 2;
sbit K4 = P2 ^ 3;
sbit K5 = P2 ^ 4;
sbit K6 = P2 ^ 5;
sbit K7 = P2 ^ 6;
sbit K8 = P2 ^ 7;
/ * Define eight into the microcontroller P1 port * /
sbit IN0 = P1 ^ 0;
sbit IN1 = P1 ^ 1;
sbit IN2 = P1 ^ 2;
sbit IN3 = P1 ^ 3;
sbit IN4 = P1 ^ 4;
sbit IN5 = P1 ^ 5;
sbit IN6 = P1 ^ 6;
sbit IN7 = P1 ^ 7;
/ ************************************************* *******************
24C08 read and write driver
************************************************** ******************* /
sbit scl = P3 ^ 6; // 24c08 SCL
sbit sda = P3 ^ 7; // 24c08 SDA
void delay1 (uchar x)
{
uint i;
for (i = 0; i
;
}
void flash (){;;}
void x24c08_init () // 24c08 initialization routine
{
scl = 1;
flash ();
sda = 1;
flash ();
}
void start () // start (I square C) bus
{
sda = 1; flash (); scl = 1; flash (); sda = 0; flash (); scl = 0; flash ();
}
void stop () // stop (I square C) bus
{
sda = 0; flash (); scl = 1; flash (); sda = 1; flash ();
}
void writex (uchar j) // write a byte
{
uchar i, temp;
temp = j;
for (i = 0; i <8; i ++)
{
temp = temp << 1; scl = 0; flash (); sda = CY; flash (); scl = 1; flash ();
}
scl = 0; flash (); sda = 1; flash ();
}
uchar readx () // read a byte
{
uchar i, j, k = 0;
scl = 0; flash (); sda = 1;
for (i = 0; i <8; i ++)
{
flash (); scl = 1; flash ();
if (sda == 1) j = 1;
else j = 0;
k = (k << 1) | j;
scl = 0;}
flash (); return (k);
}
void clock () // (I square C) line clock
{
unsigned char i = 0;
scl = 1; flash ();
while ((sda == 1) && (i <255)) i ++;
scl = 0; flash ();
}
/ ************************************************* *******************
Reads a byte of data from the address address in 24c08
************************************************** ******************* /
unsigned char x24c08_read (unsigned char address)
{
unsigned char i;
start (); writex (0xa0);
clock (); writex (address);
clock (); start ();
writex (0xa1); clock ();
i = readx (); stop ();
delay1 (10);
return (i);
}
/ ************************************************* *******************
Writes a byte of data to the address address 24c08
************************************************** ******************* /
void x24c08_write (unsigned char address, unsigned char info)
{
EA = 0;
start (); writex (0xa0);
clock (); writex (address);
clock (); writex (info);
clock (); stop ();
EA = 1;
delay1 (50);
}
/ ************************************************* *******************
Delay function
************************************************** ******************* /
void delay (uchar t)
{
uchar i, j;
for (i = 0; i
{
for (j = 13; j> 0; j--);
{ ;
}
}
}
/ ************************************************* *******************
Function : serial port initialization , baud rate 9600, the way a
************************************************** ******************* /
void Init_Com (void)
{
TMOD = 0x20;
PCON = 0x00;
SCON = 0x50;
TH1 = 0xFd;
TL1 = 0xFd;
TR1 = 1;
}
/ ************************************************* *******************
Receiving data judging function
************************************************** ******************* /
chuankou ()
{
switch (dat) // receive data to judge
{
uchar k;
k = 10;
case 0xff: P2 = 0X00; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // full
case 0x00: P2 = 0XFF; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // fully closed
case 0x01: K1 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // first road open
case 0x02: K2 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // second road open
case 0x03: K3 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // third road open
case 0x04: K4 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // fourth road open
case 0x05: K5 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // fifth road open
case 0x06: K6 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // sixth road open
case 0x07: K7 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // seventh road open
case 0x08: K8 = 0; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // eighth road open
case 0xFE: K1 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; road // first hurdle
case 0xFD: K2 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; road // second hurdle
case 0xFC: K3 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // third road off
case 0xFB: K4 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; fourth off road
case 0xFA: K5 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // fifth Lu Guan
case 0xF9: K6 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // sixth Lu Guan
case 0xF8: K7 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; seventh off road
case 0xF7: K8 = 1; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // eighth off road
case 0x55: SBUF = P1; delay (k); dat = 0xee; break; // read input status
case 0xAA: SBUF = P2; delay (k); dat = 0xee; write = 1; break; // read output port status
case 0x11: P2 = ~ P2; delay (k); SBUF = dat; dat = 0xee; write = 1; break; // output negated
default: break; // out
}
}
/ ************************************************* *******************
The main function
************************************************** ******************* /
void main ()
{
Init_Com (); // serial port initialization
x24c08_init (); // initialization 24C08
sj = x24c08_read (2); // read out the data stored confers dat
P2 = sj; // stored data given P2 mouth
while (1)
{
chuankou (); // receive data to determine the function
if (RI) // determines whether the received scan data ,
{
dat = SBUF; // receiving data SBUF endowed with dat
RI = 0; // RI cleared.
}
if (write == 1) // determine whether the timer counting one second
{
write = 0; // cleared
sj = P2; // given value P2 port dat
x24c08_write (2, sj); // 2 dat write data in 24c08 address
}
}
}
/ ************************************************* *******************
End
************************************************** ******************* /
Function:
- Host computer ( the computer ) for relay control , send a different code , control the corresponding relay ( see program for details ) .
- A power failure , that is , the power, and then restore power , before the relay output off state .
[ Photo Gallery ]



/*************************************/
Shipping list
1,24V eight relay industrial control panels with power storage 1 ( the default shipping chips STC89C52RC)
2 ,Relevant data CD 1
/*************************************/
Section babyPrice does not include invoices, you need an invoice , please contact customer service ,Thank you !
Buyers must-read :
1 , OUR baby support:[, bank transfer , cash]Transactions;
2, there is[Minimum number of starting]Baby, please photographed as required for timely delivery for you in our ;
3 , pieces of baby Please use the shopping cart , one-time bulk purchase multiple pieces of treasure , making shopping more convenient ;
4 , generalExpress our preferred[Shen Tong , tact ] arrival time of 2 to 4 days,ExpressExpress our preferred[SF ] arrival time of 1 to 2 days ,Can also be made in the pass , rhyme , EMS, unless otherwise specified , we will randomly choose ;
5,Product outNow any questions, please do not hesitate to contact us , we will give you a satisfactory answer and resolve , not arbitrarily to the assessment and Poor oh. About Reputation:
Reputation can be said that the life of network operators , online shopping is inevitable because the courier , packaging, communication and other reasons are not in place or misunderstanding misunderstanding , but buyers believe our hard efforts, do not easily give in the assessment or negative feedback, for each evaluation we are so important , I believe no problem can not be resolved , after receiving the goods you have any questions you can contact us first !
The most important is to buy online shopping fun , and gas wealth !
On the evaluation :
Taobao sellers attach great importance to evaluate each others given , because it represents their own labor . Hope buyers do not rush to give us neutral or negative feedback. There is dissatisfaction , please feel free to communicate with us , we cherish every evaluation of every friend , please contact us for further evaluation, I believe that no matter can not be resolved . We hope that buyers do not just get a satisfactory goods, but also gain a good mood , I hope more than a few mutual understanding and less complaining. I wish you a happy Taobao ! After-sales service and technical support :
I shop sales of electronic products are designed by our R & D technicians , so please customers, please provide valuable advice after purchase ! Technical support , we will be within the ability to give customers maximum technical support ! Further product information will be constantly updated , the routine will continue to increase ! State: large discount! Welcome to wholesale !
Contact us :
1, QQ: 115451619 ( online at any time )
2 , E-mail:115451619qq.com
Q1: What Is Your Product Warranty?
A: We Guarantee Our Product Is Fit For Its Normal User Purposes And Is Free From Defects In Materials Or Workmanship.
Q2: What Is Your Company Policy On Defective Goods?
A: Our Company Keep Items Quality For A Long Time. If There Are Any Defective Goods Due To
Production Defects Or Transportation Problem, Please Contact Us. Our Customer Service Team Will Provide Immediate Response To
Complaints. We Will Try Our Best To Give You A Good Resolve Way.
Q3: What Is Your MOQ (minimum Order Quantity)?
A: Generally Our Moq Is No Limited. Please Have More Discussion With Us If Your Combination Of Models Is Complicated.
Q4:how About Getting Samples From You?
A: We Will Send You The Samples After We Receive The Payment For Samples. The Buyer Shall Afford The Shipping Cost. Please Have A
Confirm With Us Which Shipping Way Do You Want.
Q5:about The Shipment: What Type Of Shipment Will You Use?
A: We Usually Ship The Products By Express(delivery It To Your Door) Or By Air Freight To Your Nearest Airport, Shipping Days:3-7
Working Days Depend On Destination;if The Order Quantity Is Large, We May Ship By Sea Container And The Best Ship Way Is By Sea,
Shipping Days: Over 20 Working Days Depend On Destination Port.
Q6:what Packing Do You Use?
A: Neutral Package With Airbag Or Customized Package.
Q7:how Much Are The Shipping Cost?
A:shipping Cost Is Charged By The Package's Weight And Related To The Shipping Methods You Choose And Your Destination.
Q8:how To Order?
Step1.Click (Add to Cart) Buy Directly On The Product Page, Or Add To Shopping Cart And Settle Together, Pay With Paypal,
Need your information, such as full name,country, city, detail address, post code, tax number ...
Step2. We Will Delivery by EMS POST, FedEx or DHL Within
3-5 Working Days After Payment Confirmed.
Setp3. Confirm Us Receipt of Products.