Re: PIC10LF322 ROM使用
|
||||
---|---|---|---|---|
版主
|
PIC10F322 是屬於 Mid-Range 的架構,這架構對 ROM 的存取不同於 PIC16F1xxx Ehanced Mid-Range 的架構。
所以要用一般的方式來存取 ROM Table Data 的。在 XC8 下這還是屬於最底層的方式,須配合暫存器的直接設定及嵌入式組合語言來完成。 這顆元件有 128B 的 High-Endurance Flash Data Memory (HEF),具有 10 萬次的存入壽命,所以會建議使用這區域來存放 ROM Data 的。 當然這 HEF 的範例程式也有,請參考底下網站的連結: AN1687: Emulating High-Endurance Data EEPROM for PIC10 and PIC12 https://www.microchip.com/wwwAppNotes/ ... tes.aspx?appnote=en569403 注意 HEF 做寫入動作之前必須先解鎖後立即執行寫入動作。
發表於: 2021/1/7 11:31
|
|||
|
Re: 空中教室課程講義與影片
|
||||
---|---|---|---|---|
管理員
|
您好! 由於本活動採直播的性質, 不同於預錄影片的研討會或是線上影片知識庫,
因此暫時無法提供每場錄影提供學員回播, 以下為本活動針對想複習課程的學員提供的規劃 1. 本活動課程會在一段時間後重複開課以供收視. 2. 每一場的課程皆會提供課程的教材檔案, 可在[CAE空中教室]首頁的[課程預告與教材下載]頁面中自行下載回家學習. [點我前往下載頁面] 3. 在系列課程全部結束後, 會提供整份完整的教材及預錄影片 感謝您對於Microchip CAE空中教室的支持!
發表於: 2021/1/7 11:06
|
|||
|
Re: XC8T v1.0 教材的程式編譯顯示錯誤
|
||||
---|---|---|---|---|
新會員
|
謝謝板主,已解決。
發表於: 2021/1/7 9:34
|
|||
|
空中教室課程講義與影片
|
||||
---|---|---|---|---|
初級會員
|
請問,
沒有報名空中教室課程(錯過時間且時間不允許), 有辦法下載講義並自行在家利用額外的時間觀看影片? 謝謝。
發表於: 2021/1/7 9:13
|
|||
|
Re: DEVICE IS NOT SUPPORTED BY CURRENTLY LOADED LIBRARY
|
||||
---|---|---|---|---|
管理員
|
你好! ATSAME51N19A 為ARM base Cortex-M4的MCU, 需使用Harmony v3進行開發, 無法使用MCC來開發.
發表於: 2021/1/6 12:26
|
|||
|
DEVICE IS NOT SUPPORTED BY CURRENTLY LOADED LIBRARY
|
||||
---|---|---|---|---|
初級會員
|
DEVICE :ATSAME51N19A
以下載網站上所有的LIBRARY,仍然錯誤: MCC ERROR MSG: 15:46:44.867 資訊: Fetching list of available libraries. 15:46:53.620 資訊: Download Complete: C:\Users\User\.mcc\mcc_libraries.xml 15:46:54.229 INFO: Start MCC 15:46:54.309 INFO: Core v5.0.2 loaded. 15:46:54.326 INFO: Libraries defined in the configuration: 15:46:58.931 WARNING: The project's device is not supported by the currently loaded libraries. All library versions are available for download on the MCC website. www.microchip.com/mcc 15:46:58.972 INFO: Stop MCC 15:46:58.972 INFO: Core v5.0.2 unloaded.
發表於: 2021/1/4 15:51
|
|||
best regards,
Anthony |
||||
|
Re: XC8T v1.0 教材的程式編譯顯示錯誤
|
||||
---|---|---|---|---|
版主
|
抱歉,今天剛回到辦公室上班。還是要祝您新的一年萬事如意。
關於你的問題無法用 XC8 編譯成功? 這是 XC8 內部設定使用 XC90 或 XC99 (C Standard) 的選項問題。 因為這份教材有些年份了,當初也只有 C89/C90 的標準可選用,所以此教材裡的練習是選用 C90 的 Standard。 請到此專案的 "Project Properties - 16F1939_ROM_Pointer_Lab3" 裡選擇使用 C90 的 Standard. 如貼圖所示:
發表於: 2021/1/4 10:20
|
|||
|
XC8T v1.0 教材的程式編譯顯示錯誤
|
||||
---|---|---|---|---|
新會員
|
如題,在研究XC8T v1.0 教材裡的PIC16F1939 FSRH:FSRL ROM指標練習時,將教材裡的檔案開啟直接進行編譯,卻發生以下錯誤訊息,請問是我哪邊沒有設定好嗎?使用MPLAB X IDE v5.35,再請幫忙解答,thx!
1. 教材內容,如下 ------------------------------------------------ #include // ************ 設定 PIC16F1937 Configuration Bits ****** // PIC16F1939 Configuration Bit Settings // 'C' source line config statements #include // #pragma config statements should precede project file includes. // Use project enums instead of #define for ON and OFF. // CONFIG1 #pragma config FOSC = ECH // Oscillator Selection (ECH, External Clock, High Power Mode (4-32 MHz): device clock supplied to CLKIN pin) #pragma config WDTE = ON // Watchdog Timer Enable (WDT enabled) #pragma config PWRTE = OFF // Power-up Timer Enable (PWRT disabled) #pragma config MCLRE = ON // MCLR Pin Function Select (MCLR/VPP pin function is MCLR) #pragma config CP = OFF // Flash Program Memory Code Protection (Program memory code protection is disabled) #pragma config CPD = OFF // Data Memory Code Protection (Data memory code protection is disabled) #pragma config BOREN = ON // Brown-out Reset Enable (Brown-out Reset enabled) #pragma config CLKOUTEN = OFF // Clock Out Enable (CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin) #pragma config IESO = ON // Internal/External Switchover (Internal/External Switchover mode is enabled) #pragma config FCMEN = ON // Fail-Safe Clock Monitor Enable (Fail-Safe Clock Monitor is enabled) // CONFIG2 #pragma config WRT = OFF // Flash Memory Self-Write Protection (Write protection off) #pragma config VCAPEN = OFF // Voltage Regulator Capacitor Enable (All VCAP pin functionality is disabled) #pragma config PLLEN = ON // PLL Enable (4x PLL enabled) #pragma config STVREN = ON // Stack Overflow/Underflow Reset Enable (Stack Overflow or Underflow will cause a Reset) #pragma config BORV = LO // Brown-out Reset Voltage Selection (Brown-out Reset Voltage (Vbor), low trip point selected.) #pragma config LVP = ON // Low-Voltage Programming Enable (Low-voltage programming enabled) const unsigned char Lookup_Table[ ] = {0xA0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 80, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 80, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 80, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 0xAA, 0xAB}; unsigned char Input_Buffer[320] @0x21; const unsigned char *near ROMPTR = Lookup_Table; unsigned char *near RAMPTR = Input_Buffer; // PTR 指標位址設在 Access Memory near unsigned int j; // 變數 j 放在 Access Memory void main(void) { for (j = 0; j <= 302; j++)*RAMPTR++ = *ROMPTR++; while (1); } -------------------------------------------------------- 2. 錯誤訊息,如下 -------------------------------------------------------- Program Lookup Table FSR.c:54:32: error: expected ';' after top level declarator unsigned char Input_Buffer[320] @0x21; ^ ; Program Lookup Table FSR.c:55:26: error: expected ';' after top level declarator const unsigned char *near ROMPTR = Lookup_Table; ^ ; Program Lookup Table FSR.c:56:16: error: redefinition of 'near' with a different type: 'unsigned char *' vs 'const unsigned char *' unsigned char *near RAMPTR = Input_Buffer; // PTR }]b Access Memory ^ Program Lookup Table FSR.c:55:22: note: previous definition is here const unsigned char *near ROMPTR = Lookup_Table; ^ Program Lookup Table FSR.c:56:20: error: expected ';' after top level declarator unsigned char *near RAMPTR = Input_Buffer; // PTR }]b Access Memory ^ ; Program Lookup Table FSR.c:57:1: error: unknown type name 'near' near unsigned int j; // j b Access Memory ^ Program Lookup Table FSR.c:57:6: error: expected identifier or '(' near unsigned int j; // j b Access Memory ^ Program Lookup Table FSR.c:61:10: error: use of undeclared identifier 'j' for (j = 0; j <= 302; j++)*RAMPTR++ = *ROMPTR++; ^ Program Lookup Table FSR.c:61:17: error: use of undeclared identifier 'j' for (j = 0; j <= 302; j++)*RAMPTR++ = *ROMPTR++; ^ Program Lookup Table FSR.c:61:27: error: use of undeclared identifier 'j' for (j = 0; j <= 302; j++)*RAMPTR++ = *ROMPTR++; ^ Program Lookup Table FSR.c:61:32: error: use of undeclared identifier 'RAMPTR' for (j = 0; j <= 302; j++)*RAMPTR++ = *ROMPTR++; ^ Program Lookup Table FSR.c:61:44: error: use of undeclared identifier 'ROMPTR' for (j = 0; j <= 302; j++)*RAMPTR++ = *ROMPTR++; ^ 11 errors generated.
發表於: 2020/12/31 14:26
|
|||
|
Re: 請問SST26VF032B的動作?
|
||||
---|---|---|---|---|
資深會員
|
Dear Ryang :
1. 那EEPROM容量是不夠. 2. 我已解決了,已可以讀寫了. 謝謝.
發表於: 2020/12/30 17:14
|
|||
|