atsamc21 io initial value
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
ATSAMC21 I/O 初始值是HI OR LO OR 高阻抗, 要找哪份文件有說明
發表於: 2021/7/23 16:03
|
|||
|
Re: 如何在Harmony 3 設定systick time: unit :us
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
hi Libra
感謝~~~~ 左邊是0.001ms時, Gen出來的設定, 右邊是1ms時, Gen出來的設定,
發表於: 2021/7/23 15:23
|
|||
|
如何在Harmony 3 設定systick time: unit :us
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
我去看 Harmony 3 只能配置最小單位: ms ,如何可以產生us
發表於: 2021/7/22 14:55
|
|||
|
Re: spi mode 設定問題
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
感謝,我是用 atsmac21j18a
發表於: 2021/7/22 14:47
Edited by Libra on 2021年07月26日 12:48:17
|
|||
|
spi mode 設定問題
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
請教各位: 如何在Harmony 3 設定SPI MODE3: CPOL=1 CPHA=1
發表於: 2021/7/21 11:43
|
|||
|
讀寫 i2c csi 24c02 問題
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
uint8_t EERD_BUF[16];
uint8_t TEST_DATA[16]; void Get_ AT24MAC402_MAC(uint8_t *MAC_BUF) { uint8_t SubAddr[0]; SubAddr[0] = 0xA0; SERCOM2_I2C_Write( 0xA0, SubAddr, 1); while(SERCOM2_I2C_IsBusy()); SERCOM2_I2C_Read(0xA0,MAC_BUF,16); while(SERCOM2_I2C_IsBusy()); __asm("nop"); //設定斷點程式有跑到這 查看EERD_BUF 都是0 } int main ( void ) { uint8_t i=0; for (i=0 ;i < 16 ; i++) { TEST_DATA[i]=i; // 初始化填入測試數據入 } SERCOM2_I2C_Write(0xA0,&TEST_DATA[0],16); while(SERCOM2_I2C_IsBusy()); __asm("nop"); //設定斷點程式有跑到這 Get_AT24MAC402_MAC (&EERD_BUF[0]); while ( true ) { /* Maintain state machines of all polled MPLAB Harmony modules. */ SYS_Tasks ( ); __asm("nop"); return ( EXIT_FAILURE ); } }
發表於: 2021/7/9 10:24
|
|||
|
Re: ATSAMC21J18A 編譯錯誤
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
HI Ryang
感謝我在試試~~~~
發表於: 2021/7/6 11:00
|
|||
|
Re: [分享]ATSAME51J20A Curiosity Nano 學習記事
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
真的很不錯,可以提供 ATSAMC21J18A 例程?
發表於: 2021/7/3 22:48
|
|||
|
ATSAMC21J18A 編譯錯誤
|
||||
---|---|---|---|---|
中級會員
![]() ![]() |
請教各位有人遇過? 使用 Harmony 工具產生程式碼,為何編譯會有問題
我使用 MPLAB X IDE: V4.15 ,XC32: V2.50 /******************************************************************************* Main Source File Company: Microchip Technology Inc. File Name: main.c Summary: This file contains the "main" function for a project. Description: This file contains the "main" function for a project. The "main" function calls the "SYS_Initialize" function to initialize the state machines of all modules in the system *******************************************************************************/ // ***************************************************************************** // ***************************************************************************** // Section: Included Files // ***************************************************************************** // ***************************************************************************** #include #include #include #include "definitions.h" // SYS function prototypes // ***************************************************************************** // ***************************************************************************** // Section: Main Entry Point // ***************************************************************************** // ***************************************************************************** int main ( void ) { /* Initialize all modules */ SYS_Initialize ( NULL ); while ( true ) { /* Maintain state machines of all polled MPLAB Harmony modules. */ SYS_Tasks ( ); } /* Execution should not come here during normal operation */ return ( EXIT_FAILURE ); } /******************************************************************************* End of File */ [color=FF211E]make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: *** No rule to make target '.build-conf'. Stop. make[1]: Entering directory 'F:/ARM_SAM/My_Project/firmware/demo.X' make[1]: Leaving directory 'F:/ARM_SAM/My_Project/firmware/demo.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed make: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 135ms) [/color]
發表於: 2021/7/3 18:47
|
|||
|