PIC Vietnam

PIC Vietnam (http://www.picvietnam.com/forum/index.php)
-   Chương trình dịch & các công cụ mô phỏng (http://www.picvietnam.com/forum/forumdisplay.php?f=10)
-   -   Dịch MPLAB (http://www.picvietnam.com/forum/showthread.php?t=354)

chitrung12 22-06-2010 10:16 AM

mình đang tìm hiểu về led rgb. vậy bạn nào có tài liệu thì cho xin nhe. trungchi3t@gmail.com

sit_alone76816 22-06-2010 04:53 PM

Anh Nam ơi ! Sau khi mình biên dịch ra file .hex xong thì làm sao mình biết là dung lượng của file đó ra sao để nạp vào PIC. Em đang dùng MPlab C18, mong anh chỉ giúp !

namqn 23-06-2010 12:50 AM

Trích:

Nguyên văn bởi sit_alone76816 (Post 36891)
Anh Nam ơi ! Sau khi mình biên dịch ra file .hex xong thì làm sao mình biết là dung lượng của file đó ra sao để nạp vào PIC. Em đang dùng MPlab C18, mong anh chỉ giúp !

Sau khi biên dịch chương trình xong, bạn vào mênu View, chọn lệnh 1 Memory Usage Gauge để biết được dung lượng bộ nhớ chương trình và dữ liệu đã được sử dụng (tổng dung lượng bộ nhớ chương trình và dữ liệu của chip đang được chọn cũng được hiển thị).

Chú ý rằng kích thước của file .hex không phản ánh kích thước thực của dung lượng bộ nhớ chương trình đã sử dụng.

Thân,

vanchinhdt 23-06-2010 05:21 PM

Đối số ra khỏi phạm vi (không phải là một cấu hình hợp lệ đăng ký địa chỉ)
bạn thay đổi lại số xem sao nha số bạn nhập quá lớn nhập lai số khác nhỏ hơn nha

tran cam 31-10-2010 01:50 AM

Chương trình của em sau khi biên dịch có kết quả ở Output như thế này:
"Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Documents and Settings\tran cam\Desktop\Test code ASM\LED_IO\LED_IO_01.o".
Clean: Deleted file "C:\Documents and Settings\tran cam\Desktop\Test code ASM\LED_IO\LED_IO_01.ERR".
Clean: Deleted file "LED_IO_01.lst".
Clean: Deleted file "LED_IO_01.cof".
Clean Warning: File "LED_IO_01.cod" doesn't exist.
Clean Warning: File "LED_IO_01.hex" doesn't exist.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F877A "LED_IO_01.asm" /l"LED_IO_01.lst" /e"LED_IO_01.err" /o"LED_IO_01.o"
Message[302] C:\DOCUMENTS AND SETTINGS\TRAN CAM\DESKTOP\TEST CODE ASM\LED_IO\LED_IO_01.ASM 15 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[205] C:\DOCUMENTS AND SETTINGS\TRAN CAM\DESKTOP\TEST CODE ASM\LED_IO\LED_IO_01.ASM 22 : Found directive in column 1. (END)
Executing: "C:\Program Files\Microchip\MPASM Suite\mplink.exe" "C:\Documents and Settings\tran cam\Desktop\Test code ASM\LED_IO\16f877a.lkr" "C:\Documents and Settings\tran cam\Desktop\Test code ASM\LED_IO\LED_IO_01.o" /o"LED_IO_01.cof" /M"LED_IO_01.map"
MPLINK 4.05, Linker
Copyright (c) 2006 Microchip Technology Inc.
Errors : 0

MP2COD 4.05, COFF to COD File Converter
Copyright (c) 2006 Microchip Technology Inc.
Error - Source file 'C:\Documents and Settings\tran cam\Desktop\Test code ASM\LED_IO\LED_IO_01.asm' name exceeds file format maximum of 62 characters.
Errors : 1

Loaded C:\Documents and Settings\tran cam\Desktop\Test code ASM\LED_IO\LED_IO_01.cof.
BUILD SUCCEEDED: Sun Oct 31 00:34:34 2010
"
Như vậy là đã build xong rồi nhưng không tìm thấy file .hex ở đâu. Mong các anh chỉ giúp.

tran cam 31-10-2010 01:51 AM

Và đây là code:
";Lap trinh: Tran Hong Cam
;Ngay 30/10/2010
;CT nay lam sang LEDs gan o PORT B, dong thoi kiem tra dac tinh chan RB3
processor 16F877A
include <P16F877A.inc>
__CONFIG _CP_OFF&_WDT_OFF&_BODEN_OFF&_PWRTE_ON&_XT_OSC&_WRT _OFF&_LVP_ON&_CPD_OFF
;Bat dau CT
ORG 0x000
GOTO START
;Khoi tao PORT B la cong xuat du lieu
ORG 0x005
START
BCF STATUS,RP1
BSF STATUS,RP0
CLRF TRISB
;Xuat du lieu ra PORT B
BCF STATUS,RP0
MOVLW b'11111111'
MOVWF PORTB
LOOP
GOTO LOOP
END "

hadung2431991 15-02-2012 02:42 AM

2 Attachment(s)
Sorry cac pro vi em hoi ngu. Cac pro cho em hoi. The nay la the nao. Em cung khong hieu gi luon. Em viet doan code (theo em nghi la cuc ky don gian nay). Nhung em cung khong biet tai sao no lai chay lam loi den nhu vay. Em chan thanh cam on.

hadung2431991 15-02-2012 02:48 AM

2 Attachment(s)
Sorry các pro vì em hơi ngu. Các pro cho em hỏi. Thế này là thế nào. Em cũng không hiểu gì luôn. Em viết đoạn code (theo em nghĩ là cực kỳ đơn giản này). Nhưng em cũng không biết tại sao nó lại chạy lắm lỗi đến như vậy. Em chân thành cảm ơn.

supperchon 05-07-2021 09:32 AM

Viagra online"Buy viagra online
 
precio en farmacias cajetilla de viagra pfizer
el cialis lleva receta
cialis compra segura
compra viagra sitio seguro
comprar kamagra pack 4
cialis generico es efectivo
las pastillas genericas de cialis se compran con receta
comprar cialis generico contrareembolso en espana 24 horas
comprar crema viagra
donde comprar cenforce online
cialis 20 mg generico italia
tadalafilo farmacia precio
viagra cialis comprar
precio del cialis en chile
precio caja de viagra original en farmacia
comprar viagra sevilla
onde comprar kamagra no brasil
comprar cialis 40mg por amazon resulatdos
comprar sildenafilo mylan
tadalafilo comprar on line
donde comprar levitra de forma segura
precio de viagra espana
comprar en charro viagra
comprar viagra 50 mg en espana
cenforce 100mg reviews
levitra bucodispersable 10 mg precio
comprar levitra generico con receta
comprar levitra en espana 2010
cialis generico pastillas 20 euros 4 pastillas
comprar contrarembolso cialis en farmacias fiables
cialis generico farmacias guadalajara
viagra almaximo precio
para que sirven las pastillas cialis 2o mg todalafilo
viagra venta libre espana
comprar super kamagra contrareembolso en espana

supperchon 18-07-2021 10:05 PM

Viagra online"Buy viagra online
 
donde comprar viagra en granada
cialis 5 mg 28 comprimidos precio
pastillas para la ereccion masculina cialis
viagra precio generico
comprar viagra al por mayor
dosis de cialis generico persona 80 kilos
donde comprar cialis vidalista
comprar levitra por telefono en espana
farmacia online italia cialis generico
cialis comprar precio
como comprar viagra por telefono
cenforce extra como tomar
comprar cialis 5 mg en argentina
viagra espana otc
compra de cialis por internet
viagra caja precio
cialis generico se vende en farmacias fisicas
cialis venta farmacia espana
levitra generico 5 mg
cenforce 120 mg
pastillas de viagra precio y otras marcas
comprar viagra generico en espana
farmacias cialis generico la nueva espana
female viagra precio
bayer levitra precio
donde comprar cialis opiniones
comprar viagra online madrid
paginas confianza para comprar viagra
farmacias viagra britanicas envio a espana
espana viagra opiniones
donde comprar viagra en coruna
precio de caja de viagra en andorra
cialis generico cuanto tarda en actuar
precio farmacia cialis 5 mg
pastilla viagra para mujer precio

Meow 06-05-2024 06:20 AM

Supreme Сasual Dating - Genuine Females
 
Embrace the freedom of casual encounters on the best dating app in town!
Authentic Ladies
Premier casual Dating


Múi giờ GMT. Hiện tại là 04:30 AM.

Tên diễn đàn: vBulletin Version 3.8.11
Được sáng lập bởi Đoàn Hiệp.
Copyright © PIC Vietnam