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

論壇索引


Board index » All Posts




Re: About USB device VID & HID
高級會員
高級會員


對哦~~

想到一個問題
如果我們用USB但是是模擬RS232
這樣在電腦上仍舊需要DRIVER和這些ID值嗎
但這樣子的話會不會也和RS232一樣在CRC上會有問題呢

發表於: 2005/6/3 9:24
頂部


Re: 新手請教一些問題
高級會員
高級會員


其實學單晶片的方式就是多看、多寫與多想


發表於: 2005/6/3 7:22
人生最長久的擁有是珍惜 但是大都在失去後才發現
頂部


Re: 菜鳥又有疑問囉???
高級會員
高級會員


看妳用那一種方法寫Delay程式, Delay有分為二種方式

1. 輪詢式: 也就是會一直等, 等到時間到才進行下一個指令

2. 中斷式: 也就是Delay的事件產生了只是會打斷CPU一下
而Delay事件與其他事件可以一起執行

在寫任何的事件都有這兩種方式, 因此使用中斷方式是較有效率的寫法

發表於: 2005/6/3 7:19
人生最長久的擁有是珍惜 但是大都在失去後才發現
頂部


Re: 新手請教一些問題
資深會員
資深會員


個人覺得w100還是很難了解
也許因為我完全不懂MCU
如果光是看書自修好像是很難耶
還好可以來這兒問一些笨笨問題
謝謝版主 及個位前輩囉

By the way...我也買了一片10F2XX自修CD
我覺得還不錯 如果需要的話
我可以E-MAIL給你們

發表於: 2005/6/3 0:50
頂部


菜鳥又有疑問囉???
資深會員
資深會員


目前還再研究10F2xx系列程式 原因是程式都比較單純
對菜鳥我 比較不會打結
但是ㄋㄟ????? 嘿.. 嘿.. 又有疑問囉???

請教個位一個笨笨問題????
如果MCU 在跑Delay 程式時 是否還可以執行其他程式
如果不能 那Delay 程式是120Sec或更長 的話
MCU就要呆跑Delay 程式 後才能再辦案啦
那不就是笨笨MCU啦
Will ..... any solution for this stupid question???


發表於: 2005/6/3 0:31
頂部


LCD的 bug
中級會員
中級會員


大家好 我使用的PIC為16F873A Demoboard為
PICDEM 2 PLUS 燒錄器為ICD2
對於LCO顯示方面有問題一直解決不了 請問問題出在哪 謝謝
我的error如下:
Error - section 'D_LCD_DATA' can not fit the absolute section. Section 'D_LCD_DATA' start=0x00000020, length=0x00000004
Errors : 1

程式如下:
list         p=16F873A
    
#include    P16F873A.inc


#define    LCD_D4        PORTB, 0    ; LCD data bits
#define    LCD_D5        PORTB, 1
#define    LCD_D6        PORTB, 2
#define    LCD_D7        PORTB, 3

#define    LCD_D4_DIR    TRISB, 0    ; LCD data bits
#define    LCD_D5_DIR    TRISB, 1
#define    LCD_D6_DIR    TRISB, 2
#define    LCD_D7_DIR    TRISB, 3

#define    LCD_E        PORTA, 1    ; LCD E clock
#define    LCD_RW        PORTA, 2    ; LCD read/write line
#define    LCD_RS        PORTA, 3    ; LCD register select line

#define    LCD_E_DIR    TRISA, 1    
#define    LCD_RW_DIR    TRISA, 2    
#define    LCD_RS_DIR    TRISA, 3    

#define    LCD_INS        0    
#define    LCD_DATA    1

D_LCD_DATA    UDATA 0x20
COUNTER        res    1
delay        res    1
temp_wr        res    1
temp_rd        res    1

    
GLOBAL    temp_wr

PROG1    CODE


;***************************************************************************
    
LCDLine_1
    banksel    temp_wr
    movlw    0x80
    movwf    temp_wr
    call    i_write
    
return
    GLOBAL    
LCDLine_1

LCDLine_2
    banksel    temp_wr
    movlw    0xC0
    movwf    temp_wr
    call    i_write
    
return
    GLOBAL    
LCDLine_2
    
d_write                      
    call    LCDBusy
    bsf        STATUS
C    
    call    LCDWrite
    banksel    TXREG            
;move data into TXREG 
    movwf    TXREG
    banksel    TXSTA
    btfss    TXSTA
,TRMT        
    
goto    $-1
    banksel    PORTA    
    
return
    GLOBAL    
d_write
    
i_write                    
    call    LCDBusy
    bcf    STATUS
C
    call    LCDWrite
    
return
     GLOBAL    
i_write

rlcd    macro    MYREGISTER
 
IF MYREGISTER == 1
    bsf        STATUS
C
    call    LCDRead
 
ELSE
    
bcf        STATUSC
    call    LCDRead
 
ENDIF
    
endm
;****************************************************************************




; *******************************************************************
LCDInit
    clrf    PORTA
    
    banksel    TRISA            
    bcf        LCD_E_DIR
    bcf        LCD_RW_DIR
    bcf        LCD_RS_DIR
    
    movlw    
b'00001110'
    
banksel    ADCON1
    movwf    ADCON1    

    movlw    0xff            
    banksel    COUNTER
    movwf    COUNTER
    movlw    0xFF
    banksel    delay
    movwf    delay
    call    DelayXCycles
    decfsz    COUNTER
F
    
goto    $-3
    
    movlw    
b'00110000'        
    
movwf    temp_wr
    bcf    STATUS
,C
    call    LCDWriteNibble

    movlw    0xff            
    movwf    COUNTER
    movlw    0xFF
    movwf    delay
    call    DelayXCycles
    decfsz    COUNTER
F
    
goto    $-3

    movlw    
b'00110000'        
    
movwf    temp_wr
    bcf    STATUS
,C
    call    LCDWriteNibble

    movlw    0xFF            
    movwf    delay
    call    DelayXCycles
                        
    movlw    
b'0011000'        
    
movwf    temp_wr
    bcf    STATUS
,C
    call    LCDWriteNibble

        
    movlw    0xFF            
    movwf    delay
    call    DelayXCycles


    movlw    
b'00100000'        
    
movwf    temp_wr
    bcf    STATUS
,C
    call    LCDWriteNibble

    call    LCDBusy            
;Busy?
                
    
movlw    b'00101000'        
    
movwf    temp_wr
    call    i_write

    movlw    
b'00001101'        
    
movwf    temp_wr
    call    i_write
            
    movlw    
b'00000001'        
    
movwf    temp_wr
    call    i_write

    movlw    
b'00000110'        
    
movwf    temp_wr
    call    i_write    

    movlw    
b'10000000'        ;DDRAM addresss 0000
    movwf    temp_wr
    call    i_write

    movlw    
b'00000010'        ;return home
    movwf    temp_wr
    call    i_write


    
return

    GLOBAL    
LCDInit    
; *******************************************************************








;****************************************************************************
;     
_    ______________________________
RS  _>--<______________________________
;     _____
RW       _____________________________
;                  __________________
E   ____________/                  ___
;     _____________                ______
DB  _____________>--------------<______
;
LCDWriteNibble
    btfss    STATUS
C        Set the register select
    bcf        LCD_RS
    btfsc    STATUS
C    
    bsf        LCD_RS

    bcf        LCD_RW            
Set write mode

    banksel    TRISB
    movlw    
b'00000000'
    
movwf    TRISB
    bcf        LCD_D4_DIR        
Set data bits to outputs
    bcf        LCD_D5_DIR
    bcf        LCD_D6_DIR
    bcf        LCD_D7_DIR

    NOP                
Small delay
    NOP

    banksel    PORTA
    bsf        LCD_E            
Setup to clock data
    
    btfss    temp_wr
7            Set high nibble
    bcf        LCD_D7    
    btfsc    temp_wr
7
    bsf        LCD_D7
    btfss    temp_wr
6
    bcf        LCD_D6    
    btfsc    temp_wr
6
    bsf        LCD_D6
    btfss    temp_wr
5
    bcf        LCD_D5    
    btfsc    temp_wr
5
    bsf        LCD_D5
    btfss    temp_wr
4
    bcf        LCD_D4
    btfsc    temp_wr
4
    bsf        LCD_D4    

    NOP
    NOP

    bcf        LCD_E            
Send the data

    
return
; *******************************************************************





; *******************************************************************
LCDWrite
;    call    LCDBusy
    call    LCDWriteNibble
    BANKSEL    temp_wr
    swapf    temp_wr
f
    call    LCDWriteNibble
    banksel    temp_wr
    swapf    temp_wr
,f

    
return

    GLOBAL    
LCDWrite
; *******************************************************************





; *******************************************************************
;     
_____    _____________________________________________________
RS  _____>--<_____________________________________________________
;               ____________________________________________________
RW  _________/
;                  
____________________      ____________________
E   ____________/                    ____/                    __
;     _________________                __________                ___
DB  _________________>--------------<__________>--------------<___
;
LCDRead
    banksel    TRISB
    bsf    LCD_D4_DIR        
Set data bits to inputs
    bsf    LCD_D5_DIR
    bsf    LCD_D6_DIR
    bsf    LCD_D7_DIR        

    BANKSEL    PORTA
    btfss    STATUS
C        Set the register select
    bcf        LCD_RS
    btfsc    STATUS
C    
    bsf        LCD_RS

    bsf        LCD_RW            
;Read 1

    NOP
    NOP            

    bsf        LCD_E            
Setup to clock data

    NOP
    NOP
    NOP
    NOP

    btfss    LCD_D7            
Get high nibble
    bcf        temp_rd
7
    btfsc    LCD_D7
    bsf        temp_rd
7
    btfss    LCD_D6            
    bcf        temp_rd
6
    btfsc    LCD_D6
    bsf        temp_rd
6
    btfss    LCD_D5            
    bcf        temp_rd
5
    btfsc    LCD_D5
    bsf        temp_rd
5
    btfss    LCD_D4            
    bcf        temp_rd
4
    btfsc    LCD_D4
    bsf        temp_rd
4

    bcf        LCD_E            
Finished reading the data

    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP
    NOP

    bsf        LCD_E            
Setup to clock data

    NOP
    NOP

    btfss    LCD_D7            
Get low nibble
    bcf        temp_rd
3
    btfsc    LCD_D7
    bsf        temp_rd
3
    btfss    LCD_D6            
    bcf        temp_rd
2
    btfsc    LCD_D6
    bsf        temp_rd
2
    btfss    LCD_D5            
    bcf        temp_rd
1
    btfsc    LCD_D5
    bsf        temp_rd
1
    btfss    LCD_D4            
    bcf        temp_rd
0
    btfsc    LCD_D4
    bsf        temp_rd
0

    bcf        LCD_E            
Finished reading the data

FinRd
    
return
; *******************************************************************






; *******************************************************************
LCDBusy
                    
Check BF
    rlcd    LCD_INS
    btfsc    temp_rd
7
    
goto    LCDBusy
    
return

    GLOBAL    
LCDBusy
; *******************************************************************






; *******************************************************************
DelayXCycles
    decfsz    delay
F
    
goto    DelayXCycles
    
return
; *******************************************************************
    

    
END


發表於: 2005/6/2 22:07
頂部


Re: Microchip會開USB相關課程嗎
高級會員
高級會員


參照:

Ryang 寫道:
Taiwan 版的 USB demo board 目前已經測試完成準備量產中,Workshop的練習也寫的差不多了,目前會花時間寫 Presentation 資料及練習 VB 的程式。預計八月或九月可以開課。


版主大大

加油

永遠支持, USB的課程可以開課

發表於: 2005/6/2 21:38
人生最長久的擁有是珍惜 但是大都在失去後才發現
頂部


Re: 使用mplab,v7.10,慘痛經驗
新會員
新會員


感謝版主及各位大大的幫忙,感激不盡!!

發表於: 2005/6/2 17:30
頂部


Re: Microchip會開USB相關課程嗎
版主
版主


Taiwan 版的 USB demo board 目前已經測試完成準備量產中,Workshop的練習也寫的差不多了,目前會花時間寫 Presentation 資料及練習 VB 的程式。預計八月或九月可以開課。

發表於: 2005/6/2 16:25
頂部


Re: dsPIC型號
高級會員
高級會員


I:Industrial (-40C ~ +85C)
E:Extended Industrial (-40C ~ +125C)

20:20MIPS
30:30MIPS

http://ww1.microchip.com/downloads/en/DeviceDoc/70138c.pdf

Select Guide : http://ww1.microchip.com/downloads/en/DeviceDoc/00148K2.pdf

發表於: 2005/6/2 15:10
頂部



« 1 ... 7066 7067 7068 (7069) 7070 7071 7072 ... 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... ]

教育訓練中心

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