经营闽台应广全系列单片机,价格合理!PMS150C,PMS15A,PMS154B,PMS154C,PMC153,PMC156,PMC251,PMS150,PMS153,PMS156,PMS271,PMS130,PMS131,PMS232,PMS234,PMC156,PMC251,pdk82c12,PMC150,PMC271,PMS132,PMS134,PMS154B,PFS154,PFS173,PMS152 ,PMS171B,PMS133,PMS134, 广泛应用于玩具 灯饰等产品,质量稳定!PMS150C则是满满的1K OTP,含外置中断,内部16位和8位定时器,其中8位定时器还可以用于产生PWM。另外还提供一路硬件比较器。比较器的参考电压可设置。用起来的确不一般。主要是开发环境也很不错。支持应广*创的MINI-C语言和汇编语言。是很多工程师的开发可以选择。热销PADAUK应广单片机MCU PMS150C-SOP8 S08脚贴片IC芯片单片机可开发应广单片机授权代理商深圳市艾拓微电子科技有限公司//PMC150C 引脚定义//================================================================================// VDD |1 8| GND// PA7 |2 7| PA0// PA6 |3 6| PA4/PWM// PA5/PRST# |4 5| PA3/PWM//================================================================================#include "extern.h"#pragma disable check_lvd.ramadr 0 //地址定义为0word gw_Point;.ramadr system //以后变量地址由系统自行决定word gw_T16Cnt; word gw_Cnt;byte gb_Flag;bit b_T16_1ms : gb_Flag.0 //1MSbit b_1S_F : gb_Flag.1 //1Sbyte gb_KeyDebounce;byte gb_KeyNew;byte gb_KeyOld;byte gb_KeyValue;D_KEYPORT equ 0b_0000_0001D_KEY1 equ 0b_0000_0001D_KeyBounce equ 30*1000/1024 //30ms//================================================================================////--------------------------------------------------------------------------------void Test_DirectScanKey(void){ if(b_T16_1ms) { b_T16_1ms = 0; a = pa & D_KEYPORT; a ^= D_KEYPORT; if(gb_KeyNew == a) {//读到值相同值,Debouce if(--gb_KeyDebounce == 0) {//Debounce结束 if(gb_KeyOld != gb_KeyNew) { gb_KeyValue = gb_KeyNew; gb_KeyOld = gb_KeyNew; } } } else { gb_KeyNew = a; gb_KeyDebounce = D_KeyBounce; } }}void Test_KeyProcess(void){ //处理Key1 if(gb_KeyValue == D_KEY1) { gb_KeyValue = 0; //pa3 电平翻转 a = pa; a ^= 0x08; pa = a; }}//================================================================================//TABLE//--------------------------------------------------------------------------------void Pr0_Skip(void){ pcadd a; //a = 1~n,a值等于0时不能跳出pcadd循环 { ret 0xaa; ret 0xbb; ret 0xcc; ret 0xdd; ret 0xee; }}//================================================================================void FPPA0(void){ .ADJUST_IC SYSCLK=IHRC/4, IHRC=16MHz, VDD=5V;pac = 0b_1111_1110; //pa0 pull high pa = 0b_0000_0000; paph = 0b_0000_0001; $ padier 0b_1111_1001;//------------------------------------------------------------ //清除RAM gw_Point = _SYS(RAM_SIZE)-1; a = 0; do { gw_Point = a; }while(--gw_Point$0);//------------------------------------------------------------ //定时1MS gw_Point = 1024 - 1000; stt16 gw_T16Cnt; $ t16m SYSCLK,/4,bit10;intrq = 0; inten.2 = 1; engint;//------------------------------------------------------------ //从ROM中取数据 a = 0x02; Pr0_Skip();//------------------------------------------------------------ while (1) { .wdreset; Test_DirectScanKey(); Test_KeyProcess(); }}//================================================================================void Interrupt(void){ pushaf;if(intrq.t16) //1MS { intrq.t16 = 0; stt16 gw_T16Cnt; //test IO a = pa; a ^= 0x80; pa = a;b_T16_1ms = 1; gw_Cnt++; if(gw_Cnt > 999) {//1S计数 gw_Cnt = 0; b_1S_F = 1; } } popaf;}//================================================================================闽台PMS150C datasheet 应广单片机PMS150C数据手册【中文版】艾拓微电子
深圳市艾拓微电子科技有限公司是一家以单片机应用为**的整体方案合作商,同时也是闽台应广科技的正式授权代理商。经营的型号:PMC153,PMC156,PMC251,PMS150,PMS153,PMS156,PMS271,PMS130,PMS131,PMS232,PMS234,PMC156,PMC251,pdk82c12,PMC150,PMC271,PMS132,PMS134,PMS154B等型号,同时代理国内外各大品牌产品。产品覆盖:DC-DC升压IC/降压IC、锂电充电/保护IC、快充/识别IC、type-c-IC、MOS场效应管、LDO稳压IC、MCU、LED驱动IC、触摸IC、AC-DC、电感、FLASH、蓝牙IC等。欢迎来电!唐先生:1562*6510*025 Q:290*804*8741