MSP430F1121 and PCF8576 drivers

#include "MSP430x11x1.h"

#define uint unsigned int
#define uchar unsigned char

//Device address
Uchar PCF8576 =0x70;

/ / memory data definition

Uchar ByteCnt; //I2C data byte counter
Uchar SlvAdr; //receiver address
Uchar SubAdr; //receiver unit address
Uchar XmtDat[5]; //Send data buffer


//uchar MODE1=0x45;
Uchar MODE2=0xCD; //
Uchar Bank_sel=0x78;

Uchar flag;

Uchar Digit[10];

#define SDA BIT3 // P2.3 controls SDA line (pull-up used for
logIC 1)
#define SCL BIT4 // P2.4 controls SCL line (pull-up used for logic 1)



/************************************************* *****************************
; subroutine
; Name: START
Description: Start I2C bus subroutine--Send I2C start condition
;;************************************************ *****************************/
Void START(void)
{
P2OUT |= SDA; //SDA=1
_NOP();
P2OUT |= SCL; //SCL=1
_NOP();
P2OUT &= ~SDA; //SDA=0
_NOP();
P2OUT &= ~SCL; //SCL=0
}

/*------------------------------------------------ --------------------------
; Name: STOP
Description: Stop I2C bus subroutine--Send I2C bus stop condition
;------------------------------------------------- ------------------------*/
Void STOP(void)
{
P2OUT &= ~SDA; //SDA=0
_NOP();
P2OUT |= SCL;
_NOP();
P2OUT |= SDA;
_NOP();
P2OUT &= ~SCL;
}

Void cack(void) /* Answer bit check */
{
P2OUT |= SDA;
P2OUT |= SCL;

P2DIR &= ~SDA;

_NOP();
P2OUT &= ~SCL;

P2DIR |= SDA;

}

Void delay(uchar time)
{
Uchar i;

Do{
For(i=100;i!=0;i--);

} while(--time!=0);

}

/*------------------------------------------------ ----------------------
; Name: SendByte
Description: Byte data transfer subroutine sends a byte data or address to the controller PCF8576
;------------------------------------------------- -----------------------*/
Void SendByte(uchar Data)
{
Uchar i=8;

Do
{
If((Data&0x80)==0x80)
P2OUT |= SDA;
Else
P2OUT &= ~SDA;

P2OUT |= SCL;
_NOP ();
P2OUT &= ~SCL;

Data=Data

Indoor Led Kiosk Eposter

Best advertising player or money making machine---Led Kiosk Xposter

This Type of indoor led Xposter also called led AD player is one of new applications for led displays. Developed from led screens, it is more suitable and friendly to operate.

Function of Xposter is as following:

Ultra slim& light weight. Installation friendly

Xposter has been engineered with latest technologies to give smoother, slimmer profile. It's crafted in beautiful anodized light weight& duralble aluminum body to make entire poster framce less than 35KGS. More portable and easier to install.


Plug and Play Media player. No Configuration.

Update your digital content in the powerfull built in media play via wifi or USB. Easy to follow on screen menu makes it absolutely simple to schedule your content and complicated configuration needed.


Front Serviceable

You'll love the speedy convenience of doing servicing of panel module replacement from front with just a magnet tool.


Easy Controll & operation

High refresh rate and 128 steps of gradation controll. No Pc required, Thus saves on cost, increases reliability and makes operations simpler.


Intelligent Management.

Xposter is pre-integrated software enables you to connect it with a PC or Android devices from a single location via rj45, wifi,3G, USD and HDMI. That makes it extremely easy to identify your display and manage settings.


Indoor Led Kiosk Eposter,Indoor Led Advertising Player,P2.5 Indoor Led Ad. Poster,Intelligent Indoor Led Advertising Player

Shenzhen Priva Tech Co., Ltd. , https://www.privaled.com