//应广单片机编程第七季
//试商法,逆向工程,红外发射
//QQ:774145445
//快手:共同学习stm8
//2020/11/8
//----------PMS150G----------
// ______@_____
// |1vdd gnd8|
// |2pa7 pa07|
// |3pa6 pa46|--led
// |4pa5____pa35|
#include "extern.h"
led bit pa.4;
void FPPA0 (void)
{
.ADJUST_IC SYSCLK=IHRC/4 // SYSCLK=IHRC/4
$ led out,low;
while (1)
{
led =1;
.delay 73; //109
led =0;
.delay 145;
}
}
/*
void Interrupt (void)
{
pushaf;
if (Intrq.T16)
{ // T16 Trig
// User can add code
Intrq.T16 = 0;
//...
}
popaf;
}
*/
|