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

論壇索引


Board index » All Posts (mechwu)




Re: 用c寫程式哪一套比較好
#31
資深會員
資深會員


CCS的試用版

http://www.ccsinfo.com/demo.shtml

就從這個我最喜歡的程式開始玩吧
#include <16F877.H> // <18F458.H> 

#fuses HS, NODEBUG, NOLVP, PUT

#use delay(clock = 20000000)        
#use rs232( baud = 9600, xmit = PIN_C6, rcv = PIN_C7 )

void main()
{
   
printf(" Hello world ! ");

   while(
1)
   {
      
output_high(PIN_B0); delay_ms(800); // 閃閃 LED
      
output_low (PIN_B0); delay_ms(200);
   }
}

發表於: 2005/5/26 18:44
頂部


Re: 內部與外部的 BOR 與 WDT,有必要內外兼施嗎?
#32
資深會員
資深會員


已搞定,多謝啦

發表於: 2005/5/3 11:49
頂部


Re: 內部與外部的 BOR 與 WDT,有必要內外兼施嗎?
#33
資深會員
資深會員



謝謝啦

發表於: 2005/4/30 14:03
頂部


內部與外部的 BOR 與 WDT,有必要內外兼施嗎?
#34
資深會員
資深會員


大家好,碰到一個頭痛問題

電源不穩時,啟用內建的 BOR,還有必要加上外部的 BOR嗎?

例: MCP130 (MCU Voltage Supervisor) 與 TC32M (System Supervisor with Power Supply Monitor and Watchdog)

我碰到的狀況是,沒有啟動 BOR 且 電源不穩時,18F4620 無法 RESET,死機!

問題是,18F4620 有內部的 WDT 與 BOR,還需要加上 TC32M 或 MCP130 嗎?加上之後會更穩定嗎?

謝謝囉

發表於: 2005/4/29 12:45
頂部


Re: 關於AN833的TCPConnect()這個function的使用方法
#35
資深會員
資深會員


抱歉囉,我沒玩過 DNS

發表於: 2005/4/28 21:09
頂部


Re: LCD程式範例需求
#36
資深會員
資深會員


喔,抱歉,原來你要的是內建的 LCD 模組喔

CCS
3.223 LCD support for the newest parts with direct LCD drive has been added

似乎是從 CCS 3.222 開始就有新增
SETUP_LCD(), lcd_symbol(), lcd_load() 等三個指令

要搭 923/924 LCD controller ?我也不知道這是啥,呵呵

有範例程式喔 C:\Program Files\PICC\Examples\ex_92lcd.c

還沒用過,就只有用 Help 看看指令啦

SETUP_LCD()

Syntax:
setup_lcd (mode, prescale, segments);



Parameters:
Mode may be one of these constants from the devices .h file:

LCD_DISABLED, LCD_STATIC, LCD_MUX12,LCD_MUX13, LCD_MUX14



The following may be or'ed (via |) with any of the above:

STOP_ON_SLEEP, USE_TIMER_1



Prescale may be 0-15 for the LCD clock segments may be any of the following constants or'ed together:

SEGO_4, SEG5_8, SEG9_11, SEG12_15, SEG16_19, SEGO_28, SEG29_31, ALL_LCD_PINS



Returns:
undefined



Function:
This function is used to initialize the 923/924 LCD controller.



Availability:
Only devices with built in LCD drive hardware.

Requires
Constants are defined in the devices .h file.

Examples:
setup_lcd(LCD_MUX14|STOP_ON_SLEEP,2, ALL_LCD_PINS);

Example Files:
ex_92lcd.c


Also See:
lcd_symbol(), lcd_load()


發表於: 2005/4/26 23:10
頂部


Re: LCD程式範例需求
#37
資深會員
資深會員


CCS 範例

C:\Program Files\PICC\Examples\EX_LCDKB.c

驅動程式

C:\Program Files\PICC\Drivers\lcd.c

需要 128 x 64 的 Graphic LCD 嗎?

C:\Program Files\PICC\Drivers\glcd.c


發表於: 2005/4/25 22:55
頂部


Re: 請問 AN937(Implementing a PID Controller Using a PIC18 MCU)裡面提到的source code 在那兒download 呢?
#38
資深會員
資深會員



發表於: 2005/4/22 13:55
頂部


Re: timer2與pwm的問題
#39
資深會員
資深會員


參照:

Ryang 寫道:
co18i.
loop
:
  
// Call the user's main routine
  
main ();
  goto 
loop;


co18i.o 為何不寫成這樣?
main ();  // Call the user's main routine
loop:
  goto 
loop// while(1) loop
}


好奇中 ...

發表於: 2005/4/14 22:53
頂部


Re: 關於C18是否有支援內建EEPROM之函數
#40
資深會員
資深會員



CCS 有 value = read_eeprom (address) 和
write_eeprom (address, value)

試看看吧 http://www.ccsinfo.com/demo.shtml

簡單好用,適用於 16F 和 18F 全系列

更不用去依據特定的晶片改什麼 LKR 檔 ... C18 該學學才對

多喝水喔

發表於: 2005/4/11 10:44
頂部



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



:::

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

教育訓練中心

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