关于PIC模拟报警声音的问题
|
||||
---|---|---|---|---|
初級會員
|
请问用PIC模拟六声报警声音程式要怎么做,比如模拟RT0608这个要怎么写?谢谢指教!!
發表於: 2005/6/17 12:03
|
|||
|
Re: 菜鸟求救!利用dsPIC30F6014的UART口与PC通信问题!
|
||||
---|---|---|---|---|
高級會員
|
也可以參考右邊範例程式的例子
APP009那一個 隨然是4011, 不過都可以
發表於: 2005/6/17 11:26
|
|||
人生最長久的擁有是珍惜 但是大都在失去後才發現
|
||||
|
Re: 程式啟動?
|
||||
---|---|---|---|---|
高級會員
|
或者是該顆IC的設定檔沒有設好
再來就是AD轉換器要關掉, 很扯吧 我之前有碰過, 在Debugger模式下可以 但是燒錄模式下不行, 然後才知道AD沒有關掉
發表於: 2005/6/17 11:23
|
|||
人生最長久的擁有是珍惜 但是大都在失去後才發現
|
||||
|
Re: 請問燒錄器去哪買?
|
||||
---|---|---|---|---|
高級會員
|
最重要還是要看用途
若是只有單一種類, PIC或是其他廠牌 PIC可以用ICD2, 若是其他種類那就參考其他種類
發表於: 2005/6/17 11:17
|
|||
人生最長久的擁有是珍惜 但是大都在失去後才發現
|
||||
|
Re: 萬用燒錄器問題
|
||||
---|---|---|---|---|
高級會員
|
我也是半信半疑
不過我燒錄都用ICD2 也請各位大大提供意見
發表於: 2005/6/17 11:08
|
|||
人生最長久的擁有是珍惜 但是大都在失去後才發現
|
||||
|
萬用燒錄器問題
|
||||
---|---|---|---|---|
資深會員
|
請問各位大俠
有人買過或使用過大陸這種萬用燒錄器嗎 http://www.dainau.com/catalog/product ... 6c3bd409b5132efba94c7d3cb 威磊科技 VP-28B 萬用燒錄 大鳥實驗室賣的只保固7天 各位大俠您發表一下意見
發表於: 2005/6/17 9:37
|
|||
==== ^^ ^^ ====
|
||||
|
奇怪,,,奇怪......好奇怪??
|
||||
---|---|---|---|---|
資深會員
|
笨笨鴨, 又碰到問題囉,,
以下是現成的程式, 我用BFMP燒錄器,mcu 用10F206 燒錄結果ok 但是用萬用板實際測試,mcu卻不會工作 又換了一個10F206 結果還是一樣 失望之餘 又換了一個10F202燒錄 奇怪...居然會工作了, 這麼個程式應該是給10F206用的 結果是..... 奇怪,,,奇怪 .....好奇怪?? 10F202, 10F206, BFMP 都是新買的 不知 笨笨鴨 這次又做了甚麼糗事..... ; File Name:PIC10F206_06.asm, by John Massa, Nov 26, 2004, Ver 1.00 ; Description: Three LEDs blink in sequence (Chase). ;-----[Schematic]------------------------------------------------------------ ; PIC10F206 ; _ _ ; GP0, ICSPDAT, Cin+ [ \_/ ] GP3, MCLR/, Vpp ; Vss, Ground [ ] Vdd, +2.0 VDC to +5.5 VDC ; GP1, ICSPCLK, Cin- [_____] GP2, T0CKI, Cout, FOSC4 ;-----[Configuration]-------------------------------------------------------- LIST ; P10F206.INC Standard Header File, Version 1.01 Microchip Technology, Inc. NOLIST #include <p10F206.inc> ; processor specific variables ; Configure: Controls the reset pin, code protect, oscillator selection, WDT. __CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF ;-----[Defines & Variable Assignments]--------------------------------------- cblock 0x08 COUNT ; Count buffer COUNT1 ; Count1 buffer endc ;-----[Reset Vector]--------------------------------------------------------- ORG 0x000 ; PIC goes here (Origin of code) after reset. movwf OSCCAL ; Load the oscillator calibration factor. goto init ; go to initialization routine ;-----[Interrupt Vector]----------------------------------------------------- ; Note: PIC10F202/206 does not use interrupts. ;-----[Initialization]------------------------------------------------------- init ;-----[OPTION]--------------------------------------------------------------- ; OPTION register controls wake on GP0,1,3 change, GP0,1,3 pull-ups, TM0, etc movlw b'10000111' ; Set pull-ups only, max pre-scaler OPTION ; ;-----[CMCON0]--------------------------------------------------------------- ; Comparator control register movlw b'10001111' ; Turn-off the comparator, enable the I/O pins. movwf CMCON0 ;-----[TRIS]----------------------------------------------------------------- ; TRIS (reg#) tri-state I/O register. All I/O pins default to inputs at reset. movlw b'00001000' ; Set GPIO pin 3 to an input, pins 0 - 3 to outputs. TRIS GPIO ; Register 06h ;-----[Main routine]--------------------------------------------------------- main ; Three LEDs will sequence (Chase). bcf GPIO,0 ; Turn-off all the LEDs bcf GPIO,1 bcf GPIO,2 main1 bsf GPIO,0 ; Turn-on LED #1 call pause_250ms ; Pause for 250 miliseconds bcf GPIO,0 ; Turn-off LED #1 bsf GPIO,1 ; Turn-on LED #2 call pause_250ms ; Pause for 250 miliseconds bcf GPIO,1 ; Turn-off LED #2 bsf GPIO,2 ; Turn-on LED #3 call pause_250ms ; Pause for 250 miliseconds bcf GPIO,2 ; Turn-off LED #3 goto main1 ;-----[Subroutines]---------------------------------------------------------- pause_250ms ; This subroutine delays for ~250 milliseconds movlw d'249' ; Move the literal count of 249 to reg 'W' movwf COUNT ; ...then store it in the register 'COUNT' goto pause pause ; This subroutine pauses for 1 millisecond movlw d'100' ; Move the literal count of 100 to reg 'W' movwf COUNT1 ; ...then store it in the register 'COUNT1' pause_1 NOP ; These 7 'NOP's delay for 7 microseconds NOP NOP NOP NOP NOP NOP decfsz COUNT1,F ; Is the buffer 'COUNT1' decrement to zero? goto pause_1 ; ...no, its not fully decremented yet, loop again decfsz COUNT,F ; ...yes, now decrement the buffer 'COUNT' goto pause ; The buffer 'COUNT' is not zero, load 'COUNT1' again retlw 0 ; ...Yes, now the buffer COUNT' is zero. Return. END ; Directive to end the program
發表於: 2005/6/17 7:18
|
|||
|
Re: 類8051組合語言與c語言的問題
|
||||
---|---|---|---|---|
高級會員
|
程式多寫多看多想就會有進步
祝妳日有所增
發表於: 2005/6/17 0:47
|
|||
人生最長久的擁有是珍惜 但是大都在失去後才發現
|
||||
|
Re: 請問燒錄器去哪買?
|
||||
---|---|---|---|---|
新會員
|
嘻嘻,这边自制PICSTART,70RMB(280左右台币)就搞定了,不过得问MICROCHIP申请18F6720样片。
發表於: 2005/6/17 0:00
|
|||
|