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

論壇索引


Board index » All Posts (ro888)




Re: Question about XLCD library suppot?
#11
新會員
新會員


Thanks for your reply, Ryang.

The 204 AVC tutorial's code was about interfacing LCD by PMP peripheral.

Do you have any code about using XLCD?

I want to make sure if XLCD works with normal HD44780 controller character LCD.

Thanks.

發表於: 2009/4/22 17:38
頂部


Question about XLCD library suppot?
#12
新會員
新會員


Does XLCD support dsPIC33FJ128GP802?

I saw there is a header defined in the support document and it mentioned that XLCD supports dsPIC30F/33F and also PIC24H.

Anyone used it before?

發表於: 2009/4/21 17:05
頂部


Re: 關於FFT的問題
#13
新會員
新會員


Thanks for your answer. BBL

For question3, a 12bit ADC output format can be one of the following:
1. signed fractional sddd dddd dddd 0000
2. unsgined fractional dddd dddd dddd 0000
3. signed integer
4. unsigned integer

If I have my analogue input range from 0.0V to 3.3V and signed fractional is chosen, the ADC output value will be -1 (0.0V) to +1 (3.3V). How can we change the range to what you mentioned in Answer3?

發表於: 2009/4/20 0:40
頂部


關於FFT的問題
#14
新會員
新會員


Hi,

I am a newbie in DSP processing. Just want to ask some questions which might be very easy.

In the code example CE108, it mentioned:
"inputsignal_square1khz.c" in the array named sigCmpx[]". This array should be of length, FFT_BLOCK_LENGTH and
type "fractcomplex". So, for a 64-pt FFT, it should contain only 64 data samples and padded initially with 64 zeroes. This array
stores the output of the complex FFT operation and eventually stores the magnitudes of the frequency bins."

1. Why do we need 64 zero paddings? I am not quite understand.

2. Also, if I change the source of input signal from "inputsignal_square1khz.c" to an ADC input, how many samples will I
need in order to perform FFT? Will I need to include the zero padding as well?

3. As the document also mentioned that the amplitude of input signal must be in the range +0.5 to -0.5, if I got a signal from
0 to 3.3V, will I need to scale it down to 0 to 0.5V before I perform the FFT?

Many thanks

發表於: 2009/4/19 22:29
頂部


Re: dsPIC跟LCD問題?
#15
新會員
新會員


大大, 我修改部份是LCD初始化的, 原來C30教程那個代碼裏有注明要在初始化的部分將RS, R/W設成"low", 但代碼裏沒有做到。

所以我有點疑惑, 你可以發過正確的LCD代碼讓我看看嗎?

發表於: 2009/4/16 17:07
頂部


Re: dsPIC跟LCD問題?
#16
新會員
新會員


多謝大大, 我昨天查看了一下那個LCD代碼, 發現好像寫少了一些部份。

原來的代碼裏 (C30_EVM_LCD.c):

void OpenLCD(void)

{
Temp_LCD_DATA = LCD_DATA ; // Save the Port Value of LCD_DATA

LCD_E_MODE =1 ; // Initialize RB7 as digital I/O
LCD_E = 0 ; // RS & R/W --> Low
LCD_DATA &= 0xfff0; // LCD DB[4:7] & RS & R/W --> Low (PORTD[0:3] as LCD DB[4:7])
DIR_LCD_DATA &= 0xfff0; // LCD DB[4:7} & RS & R/W are output function (PORTD[0:3] as LCD DB[4:7])
DIR_LCD_E = 0; // Set E pin as output
DIR_LCD_RS = 0 ;
DIR_LCD_RW = 0 ;
...
}

其中 LCD DB[4:7] & RS & R/W --> Low (PORTD[0:3] as LCD DB[4:7])的部份, RS跟R/W好像沒有處理, 只見E跟LCD DB[4:7] 有做過處理。

我在LCD_E=0之後加入了以下代碼:
LCD_RS = 0; // Code missing
LCD_RW = 0; // Code missing

這樣改對嗎?

還有, 我找了一個LCD, 它說是跟HD44780相容的, 可以給我看一下能用嗎?
http://www.maplin.co.uk/Media/PDFs/N25AZ.pdf

它的接腳跟HD44780標準好像都一樣, 但有兩個PIN叫"A"跟"K"的, 要怎麼連呢?

發表於: 2009/4/16 15:02
頂部


dsPIC跟LCD問題?
#17
新會員
新會員


我想問一下, C30 modules 教程中那個"dsPIC30F4011-30I/P"的"APP020 EVM Board"是用哪一蕊片的LCD?

我想重用一下它的代碼。

發表於: 2009/4/16 0:48
頂部


Re: Link step failed! 誰可以幫幫忙哦
#18
新會員
新會員


沒有人能解答嗎?

發表於: 2009/4/12 6:48
頂部


Link step failed! 誰可以幫幫忙哦
#19
新會員
新會員


小弟初學dsPIC33, 想用一下它的外設xlcd來控制LCD, 結果出了以下錯誤:

Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "Main.c" -o"Main.o" -D__DEBUG -g -Wall
Main.c:1:1: warning: "__dsPIC33FJ32GP202__" redefined
<built-in>:1:1: warning: this is the location of the previous definition
Main.c: In function 'main':
Main.c:28: warning: implicit declaration of function 'PutsXLCD'
Main.c:37:2: warning: no newline at end of file
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\BusyXLCD.c" -o"BusyXLCD.o" -D__DEBUG -g -Wall
xlcd\BusyXLCD.c:72:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\delay.c" -o"delay.o" -D__DEBUG -g -Wall
xlcd\delay.c:69:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\OpenXLCD.c" -o"OpenXLCD.o" -D__DEBUG -g -Wall
xlcd\OpenXLCD.c:70:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\PutsXLCD.c" -o"PutsXLCD.o" -D__DEBUG -g -Wall
xlcd\PutsXLCD.c:27:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\ReadAddrXLCD.c" -o"ReadAddrXLCD.o" -D__DEBUG -g -Wall
xlcd\ReadAddrXLCD.c:80:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\ReadDataXLCD.c" -o"ReadDataXLCD.o" -D__DEBUG -g -Wall
xlcd\ReadDataXLCD.c:87:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\setCGRamAddr.c" -o"setCGRamAddr.o" -D__DEBUG -g -Wall
xlcd\setCGRamAddr.c:83:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\setDDRamAddr.c" -o"setDDRamAddr.o" -D__DEBUG -g -Wall
xlcd\setDDRamAddr.c:83:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\WriteCmdXLCD.c" -o"WriteCmdXLCD.o" -D__DEBUG -g -Wall
xlcd\WriteCmdXLCD.c:71:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 -x c -c "xlcd\WriteDataXLCD.c" -o"WriteDataXLCD.o" -D__DEBUG -g -Wall
xlcd\WriteDataXLCD.c:91:2: warning: #warning "Does not build on this target"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ32GP202 "Main.o" "BusyXLCD.o" "delay.o" "OpenXLCD.o" "PutsXLCD.o" "ReadAddrXLCD.o" "ReadDataXLCD.o" "setCGRamAddr.o" "setDDRamAddr.o" "WriteCmdXLCD.o" "WriteDataXLCD.o" "D:\My Documents\Final_YR_project\Microchip\lib\libp33FJ32GP202-coff.a" -o"Microchip.cof" -Wl,-L"C:\Program Files\Microchip\MPLAB C30\lib",--script="C:\Program Files\Microchip\MPLAB C30\support\dsPIC33F\gld\p33FJ32GP202.gld",--defsym=__MPLAB_BUILD=1,--defsym=__MPLAB_DEBUG=1,-Map="Microchip.map",--report-mem

......


Main.o(.text+0x4): In function `main':
D:\My Documents\Final_YR_project\Microchip\Main.c:22: undefined reference to `OpenXLCD'
Main.o(.text+0x6):D:\My Documents\Final_YR_project\Microchip\Main.c:24: undefined reference to `BusyXLCD'
Main.o(.text+0xe):D:\My Documents\Final_YR_project\Microchip\Main.c:26: undefined reference to `WriteCmdXLCD'
Main.o(.text+0x16):D:\My Documents\Final_YR_project\Microchip\Main.c:28: undefined reference to `PutsXLCD'
Main.o(.text+0x18):D:\My Documents\Final_YR_project\Microchip\Main.c:29: undefined reference to `BusyXLCD'
Main.o(.text+0x20):D:\My Documents\Final_YR_project\Microchip\Main.c:31: undefined reference to `SetDDRamAddr'
Main.o(.text+0x22):D:\My Documents\Final_YR_project\Microchip\Main.c:32: undefined reference to `BusyXLCD'
Main.o(.text+0x2e):D:\My Documents\Final_YR_project\Microchip\Main.c:34: undefined reference to `PutsXLCD'
Main.o(.text+0x30):D:\My Documents\Final_YR_project\Microchip\Main.c:35: undefined reference to `BusyXLCD'
Link step failed.

我已經把修改好的xlcd.h放到我project的folder裏, main.c裏也設置好了, 就是不知道什麼一回事, 總是build不了?

我把zip檔upload了, 有那位大大可以幫忙看一下嗎?

Attach file:


Link only for registered users

發表於: 2009/4/10 6:39
頂部


Re: dsPIC33fj外設函數庫使用出错
#20
新會員
新會員


樓主能說清楚一點嗎? 我不太明白你怎麼解決, 我也有相同的問題哦.

發表於: 2009/4/10 5:21
頂部



« 1 (2)



:::

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

教育訓練中心

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