:::

論壇索引


Board index » All Posts




Re: PIC16F17xx differential amplifier 異常輸出?
#41
中級會員
中級會員


隨便使用一顆LM358(HA17358)都能放大1000倍,PIC16F17xx完全失敗....

Why not take a break and come back in 6000 sec(Really bad operation)
You don't have the right to edit in this forum.

Attach file:



jpg  11.jpg (100.07 KB)
1458_68844d5b8eb60.jpg 957X466 px

發表於: 2025/7/26 11:37

Edited by F1-4 on 2025年07月26日 12:15:14
頂部


Re: PIC16F17xx differential amplifier 異常輸出?
#42
中級會員
中級會員


#include "mcc.h"


void SYSTEM_Initialize(void)
{

PIN_MANAGER_Initialize();
OSCILLATOR_Initialize();
WDT_Initialize();
OPA1_Initialize();
OPA2_Initialize();
TMR4_Initialize();
TMR2_Initialize();
TMR0_Initialize();
}

void OSCILLATOR_Initialize(void)
{
// SCS FOSC; SPLLEN disabled; IRCF 8MHz_HF;
OSCCON = 0x70;
// SOSCR disabled;
OSCSTAT = 0x00;
// TUN 0;
OSCTUNE = 0x00;
// SBOREN disabled; BORFS disabled;
BORCON = 0x00;
// Wait for PLL to stabilize
while(PLLR == 0)
{
}
}

void WDT_Initialize(void)
{
// WDTPS 1:65536; SWDTEN OFF;
WDTCON = 0x16;
}

/**
End of File
*/

Attach file:



jpg  12.jpg (154.19 KB)
1458_688435795ab77.jpg 743X523 px

發表於: 2025/7/26 9:55
頂部


文字太長 被X IDE 拆2行
#43
新會員
新會員


可以設定成不自動換行嗎?

發表於: 2025/7/25 16:04
頂部


Re: 請問 PIC12F1501 的問題
#44
管理員
管理員


測試過後, 這兩個問題確實存在
是否嘗試透過程式碼, 修改站暫存器的設定?

發表於: 2025/7/25 15:42
頂部


Re: RESET() 無法跳轉
#45
管理員
管理員


你參考的專案或程式碼是哪一套呢?

發表於: 2025/7/25 15:16
頂部


Re: PIC16F17xx differential amplifier 異常輸出?
#46
管理員
管理員


方便提供一下MCC的設定跟初始化的程式嗎?

發表於: 2025/7/25 15:13
頂部


PIC16F17xx differential amplifier 異常輸出?
#47
中級會員
中級會員


PIC16F1705使用內部OP AMP做 differential amplifier無法放大輸出?
然後電路外部使用 HA1735,輸出正常..

Attach file:



jpg  9.jpg (80.34 KB)
1458_687e5a7fa5bab.jpg 1416X286 px

jpg  8.jpg (132.71 KB)
1458_687e5abca4c7a.jpg 1185X680 px

發表於: 2025/7/21 23:19

Edited by F1-4 on 2025年07月21日 23:39:15
頂部


請問 PIC12F1501 的問題
#48
資深會員
資深會員


MPLABX 版本: 6.25
MCC 版本: 5.62
XC8 版本: 3.00
我使用 PIC12F1501 的 ADC, 腳位只用 RA4/AN3,name : VR,但是 MCC 產生的 adc.h 會生成這二行:

#define VR ADC_CHANNEL_ANA4
#define IO_R3 ADC_CHANNEL_AN3

另外,adc_types.h 會出現下面錯誤:
typedef enum
{
ADC_CHANNEL_TEMP = 0x1d, /**< Temp*/
ADC_CHANNEL_DAC = 0x1e, /**< DAC*/
ADC_CHANNEL_FVR = 0x1f, /**< FVR*/
ADC_CHANNEL_ANA4 = undefined, /**< VR: RA4*/
ADC_CHANNEL_AN3 = 0x3 /**< IO_R3: AN3*/
} adc_channel_t;

還有,若是將 ADC 的 Auto-conversion Trigger 設成 TMR0,MCC 的 Notificatios 會出現警告:

ADC / Warning / Under Software Settings, select TMR0 in TMR Dependency Selector. Then, configure the TMR0 module.

但是,ADC 的 TMR Dependency Selector 下拉選單只有 none 選項,沒有 TMR0 可以選,所以 Warning 消不掉。(如果 Trigger 選 TMR1 或 TMR2 時,就沒這個問題.....)

請問一下,我應該要怎麼修正問題呢?

發表於: 2025/7/15 18:54
頂部


RESET() 無法跳轉
#49
初級會員
初級會員


MCU: PIC18F47Q10
XC8 (v3.00)



[問題說明]
程式碼有分2區
0~1FFF 是 bootloader
2000 後是 AP 的區域

在bootloader 有 printf("\nSYSTEM_Initialize OK");
在 AP 區 有 printf("\n[Flow] enter AP ");
從 UART 的訊息來看, 確實有從 bootloader 區 跳到 AP 區,

我在AP 區下個 RESET(), 希望能讓程式跳轉到 bootloader 區,
但似乎這個RESET() 沒起作用.......

請問
1. RESET() 沒起作用的可能原因為何?
2, 有無其他方式能讓程式回到 bootloader 區?

發表於: 2025/7/15 15:17
頂部


Re: PIC18F27Q84 上的Comparator Module 用MCC初始化問題
#50
管理員
管理員


mdt8049 你好,

Comparator Module 的各通道的腳位為固定不可調整,
可以參考 Datasheet 的 Pin Allocation Tables 來找到每個腳位可以被配置的功能。

如下圖Comparator欄位,使用CMP2時可以選用C2IN1+(RB0)和C2IN3-(RB1)作為輸入:
縮圖

Attach file:



jpg  Pin Allocation Tables.jpg (55.42 KB)
123092_6875ed00eed22.jpg 395X665 px

發表於: 2025/7/15 13:54
頂部



« 1 2 3 4 (5) 6 7 8 ... 7540 »



:::

Microchip連結

https://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=64
https://www.linkedin.com/company/microchiptechnologytaiwan
https://www.facebook.com/microchiptechnologytaiwan/?locale=zh_TW
https://mkpage.microchip.com/l/1082123/2025-03-12/2stnv5
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
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... ]

教育訓練中心

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