电子发烧友
8420次浏览
`PIC10F200号称最小的单片机,所以想那他做一些小玩意,如呼吸灯,小型报警器等等,可是反复看起数据手册不知道怎么实现其睡眠功能。数据手册的指令集汇总中有提到SLEEP指令,可我用的MPLAB 和picc编译器,不会写程序。望高手赐教,小弟初学PIC单片机还不
2013-12-15 21:19
High-Performance RISC CPU: Only 33 single-word instructions to learn All single-cycle instructions except for program branches, which are two-cycle 12-bit wide instructions 2-level deep hardware stack Direct, Indirect and Relative Addressin
2011-05-09 16:30
6引脚8位闪存单片机 PIC10F200/202/204/206数据手册 目录1.0 器件概述2.0 PIC10F200/202/204/206 器件种类3.0 架构概述4.0 存储器构成5.0 I/O 端口6.0 Timer0 模块
2010-04-28 11:02
HIIS是否有可能通过PICTIT3和MPLAB X IDE调试PIC10F200? 以上来自于百度翻译 以下为原文 Hi is it possible to debug the PIC10F200 only with the PicKit3 and MPLAB
2019-05-14 09:17
大家好,我使用MPLAB IPE 3.05和PIC10F200。在代码中,我打开了代码保护;当我在IPE中加载十六进制文件并检查配置内存时,这得到了确认,它显示了CP=ON。Ater在IPE中编程
2019-09-23 06:42
好的大邑想用PIC10F200来实现如下。1。输入高,它可以是高1或2秒,它高1秒,输出1,1秒,它在输出2上高达2秒,2秒。我想计划这个项目,以便我能完全理解它的代码。我问的是初学者。开始时
2019-10-22 09:22
的第七延迟吗?最好的问候 以上来自于百度翻译 以下为原文 Hi,this is my current code to toggle GP1: #include tmp1 EQU 10htmp2 EQU
2019-05-15 13:50
你好,我想通过I2C来描述一个小型OLED显示器。我在汇编中编写了一个程序,它应该模拟I2C,这是我的逻辑分析仪软件上的样子(你可以在一个新的标签中打开它,使它看起来更大):ACK不一定来自奴隶,因为我拔出了PIN。到低,如果我发送第九时钟。初始化字节是正确的,因为它们在我的另一个项目上工作。I2C说,应该在第九时钟之前释放一个引脚,以便I2C从设备可以将线路拉到GND(应答)。奴隶不执行任何时钟拉伸,所以不应该是一个问题。我不知道我怎么能执行“释放一个PIN”,目前我正在切换针这样:你有什么想法,我做错了什么?非常感谢: 以上来自于百度翻译 以下为原文 Hi, i would like to address a small OLED display via I2C. I wrote a program in assembly which should simulate I2C, this is how it looks like on my logic analyzer software (you can open the image in a new tab so it appears bigger): The ACK doesn't necessarily come from the slave because i pull the pin to low if i send the 9th clock. The initialization bytes are correct because they worked on another project of mine. I2C says that a pin should be released before the 9th clock so that the I2C slave can pull the line to GND (acknowledge). The slave doesn't perform any clock stretching so that shouldn't be a problem. I am not sure how i could perform the 'release of a pin', currently i am toggling the pins like this: movlw 00h ;set all pins as outputtris 6movlw 0FFh ;set all pins to 'High'-statemovwf GPIO GP1Off: bcf GPIO,1 retlw 0 GP1On: bsf GPIO,1 retlw 0 Do you have any ideas what i am doing wrong? Thanks a lot :)
2019-05-05 13:08
你好,我现在正在尝试编写一个函数,它根据字节切换端口引脚。我的第一个问题是,命令RRF不会产生一个零标志(我不知道为什么会这样)。我使用掩码来掩码一个接一个的位:另一个问题是,掩码位不是放在最开始的位置(例如,2^0位置),而是放在掩码位所在的位置,这使处理非常复杂。你有什么想法,我怎么能用最简单易懂的方式写出这样的功能?最好的问候
2020-04-21 07:59
我无法让 GP2 成为PIC10F200上的输出。 GP0 和 GP1 作为输出工作正常,但 GP2 似乎仍然是输出。这是我的代码:- nop nop nop nop clrf 5 ;osccal
2024-01-31 08:29