• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
:::

論壇索引


Board index » All Posts




PIC程式問題
資深會員
資深會員


請問各位大俠
PIC程式是否可以組合語言和c語言混合使用
就像51語言混合使用

發表於: 2005/5/2 11:56
頂部


Re: eeprom write(mplab sim=ok,icd2 "pic18f1220" not ok)
新會員
新會員


Thank you!
解決了!

發表於: 2005/5/2 9:04
頂部


Re: PIC16635 639的汽车双向报警器
版主
版主


AN959 就是你要的方案:
The PIC16F639 is a suitable microcontroller for bidirectional communications and low-frequency sensing applications. The device includes a PIC16F636 microcontroller and a three channel Low-Frequency (LF) front-end device in a single 20-pin SSOP package.

網站連結為:
http://www.microchip.com/stellent/ste ... e=SS_GET_PAGE&nodeId=2074

發表於: 2005/5/1 22:58
頂部


Re: 18f452計時器1使用問題??
版主
版主


PIC是8-bit MCU 我不知道要怎樣同時寫入16-bit 的資料,還是先寫入 TMR1H 後再寫入 TMR1L 吧!

發表於: 2005/5/1 22:51
頂部


Re: eeprom write(mplab sim=ok,icd2 "pic18f1220" not ok)
版主
版主


我有寫了PIC18Fxxxx Internal EEPROM 的範例程式,可以到左邊的 檔案下載 區下載:

http://www.microchip.com.tw/modules/mydownloads/

另外 ICD2 要看寫入到 EEPROM 的資料是無法直接用 View --> EEPROM Window 的方式看到,ICD2 必須用 Read Device 的方式將IC的資料讀回後才能更新 EEPROM Window 的內容。

發表於: 2005/5/1 22:39
頂部


Re: 內部與外部的 BOR 與 WDT,有必要內外兼施嗎?
版主
版主


個人認為只要內建用的 BOR 就可以了,況且PIC18F4620的 BOR 有四個 Reset 電位可以選擇,適用於 5V , 3.3V 及 3V 的工作電壓。

發表於: 2005/5/1 22:27
頂部


Re: 完全不懂MCU...
版主
版主


如有需一些範例程式程式可以直接 Post 到網站來,相信很多人會樂於幫助你的。

底下程式就是最簡單的讓 GPIO 0 & 1 的輸出Hi-Low變化
list      p=10F206            ; list directive to define processor
    
#include <p10F206.inc>        ; processor specific variable definitions

    
__CONFIG   _MCLRE_OFF _CP_OFF _WDT_OFF

'__CONFIG' directive is used to embed configuration word within .asm file.
The lables following the directive are located in the respective .inc file
See respective data sheet for additional information on configuration word.




;***** 
VARIABLE DEFINITIONS
temp            EQU         0x08        
;example variable definition
Delay_Var1        EQU        0x09 
Delay_Var2        EQU        0x0a


;**********************************************************************
    
ORG     0x1FF             processor reset vector

Internal RC calibration value is placed at location 0x1FF by Microchip
; as a movlw kwhere the k is a literal value.

    
ORG     0x000             coding begins here 
    movwf   OSCCAL            
update register with factory cal value 
    bsf    OSCCAL
,0

start    
    nop                       
example code
    movlw   0xFF              
example code
    movwf   temp              
example code

remaining code goes here


    movlw    
B'11110011 
    movwf    CMCON0

    movlw    B'
11111100 
    tris    GPIO

Null_Loop

    bsf    GPIO
,0
    bsf    GPIO
,1

    call    Delay

    bcf    GPIO
,0
    bcf    GPIO
,1

    call    Delay

    
goto    Null_Loop 

Delay
    clrf    Delay_Var1
Delay_Loop2
    clrf    Delay_Var2
Delay_Loop1
    nop
    nop
    decfsz    Delay_Var2
,F
    
goto    Delay_Loop1
    decfsz    Delay_Var1
,F
    
goto    Delay_Loop2
    
return

    
END                       directive 'end of program'

發表於: 2005/5/1 22:16
頂部


Re: ICD2是否可DEBUGER dsPIC呢?
版主
版主


只要是 dsPIC 及 PIC18 所有系列 MPLAB ICD2 都可以用來燒錄及除錯。

發表於: 2005/5/1 22:11
頂部


Re: 請教pic16f877 的邏輯問題
版主
版主


到右邊的教育訓練裡,下載 W100 and W201 的講義及練習 看看會對初學著有幫助的。

發表於: 2005/5/1 22:08
頂部


Re: 請教pic16f877 的邏輯問題
管理員
管理員


您好,

PIC16F877/877A 的 H/W PWM 在 RC1 & RC2 . 您是否指的是 RC1 & RC2 呢 ?

如果我沒誤會 , 你應該是想用 RA0 & RA1 的輸入值來控制 PWM 的 Duty 吧 ? 其時 PWM 和 AD 都是 10 bits , 實在很容易. 把 ADCON1 的 bit 7 設成 Left Justify , 勤奮一點就把 ADRESH 寫入 CCPRxL , ADRESL ( bit 7&6 ) 寫入 CCPxCON bit 5..4 . 懶一點就不管 ADRESL , 直接將 ADRESH 寫入 CCPRxL 就 OK 了.

當然 , PR2 的值必需寫入 0xff , 以上的做法才會正常與合理喔.


發表於: 2005/5/1 16:46
頂部



« 1 ... 7112 7113 7114 (7115) 7116 7117 7118 ... 7525 »



:::

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... ]

教育訓練中心

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