Home
Help
Search
Login
Register
ต้องการอ่านค่า state ของ port
Electoday 4.0
ไมโครคอนโทรลเลอร์
Microchip PIC
ต้องการอ่านค่า state ของ port
« previous
next »
Print
Pages: [
1
]
ต้องการอ่านค่า state ของ port
2 Replies
2183 Views
nai102
177
ต้องการอ่านค่า state ของ port
«
on:
January 20, 2019, 03:25:39 pm »
พอดีมีความจำเป็นต้องใช้ pic ซึ่งไม่เคยใช้มาก่อน ธรรมดาจะติดอยู่กับ AVR
คือต้องการอ่านค่า state ของ port โดยไม่ต้องการเปลี่ยนแปลง direction ของมันต้องทำอย่างไรครับ
ผมใช้ MPLAB v5.10 ccs ไอซี 18f46k22
รบกวนหน่อยนะครับ
ขอบคุณมากครับ
Logged
avr_lover
262
Re: ต้องการอ่านค่า state ของ port
«
Reply #1 on:
January 21, 2019, 05:37:50 pm »
int a = (input_a() & 0b11111);
https://www.ccsinfo.com/forum/viewtopic.php?t=40715
https://ccsinfo.com/forum/viewtopic.php?p=7109
Logged
Nasagito
2
Re: ต้องการอ่านค่า state ของ port
«
Reply #2 on:
February 07, 2019, 09:42:18 am »
เนื้อหาที่คุณกำลังพูดถึงคือสิ่งที่เรากำลังมองหาซึ่งจะช่วยให้เราเป็นอย่างมาก
Logged
Print
Pages: [
1
]
« previous
next »