• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts




关于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
==== ^^ ^^ ====
頂部


IIC的多重MASTER
資深會員
資深會員


SLAVE應該沒辦法控制另外一顆IIC元件吧
我想請問使用多重MASTER時
兩顆MASTER的PIC能不能互相傳資料?
或者是
有沒有可能一顆PIC既當MASTER又可當SLAVE
在執行前規劃為MASTER
執行完再規劃回SLAVE

我現在滿傷腦筋的
兩顆PIC要用IIC通訊
一顆在控制面板 一顆在主板控制系統電路
基本上如果面板PIC當MASTER程式會很好寫
但是主板上有一顆IIC的DAC
如果主板PIC當SLAVE就沒辦法控制那一顆DAC
而主板當MASTER的話
程式不好寫
而且很多資料要傳給另一顆IIC的EEPROM (24LC16B)
還必須先傳到MASTER再傳給24LC16B x_x

還沒開始寫光是想程式流程就覺得很亂

發表於: 2005/6/17 8:53
頂部


奇怪,,,奇怪......好奇怪??
資深會員
資深會員


笨笨鴨, 又碰到問題囉,,
以下是現成的程式, 我用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
頂部



« 1 ... 7039 7040 7041 (7042) 7043 7044 7045 ... 7522 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------