pic
Is my MIPS compiler crazy, or am I crazy for choosing MIPS?
I am using a MIPS CPU (PIC32) in an embedded project, but I am starting to question my choice. I understand that a RISC CPU like MIPS will generate more instructions than one might expect, but I didn\[详细]
2023-04-11 09:28 分类:问答Creating an ASM file that will return the characters located in 8 consecutive registers
I have to create an ASM file for the PIC18F452 that does the following: (a) define the label MapName as the first of 8 consecutive registers containing a null-terminated string of not more than 7 cha[详细]
2023-04-10 07:41 分类:问答Why do some analog pins on my PIC32 report zero when disconnected and others report non-zero?
I am using a PIC32MX534F064L (datasheet), and trying to read several of its analog pins (marked AN0 to AN15).[详细]
2023-04-10 05:46 分类:问答PIC C - What's the purpose of this?
In Microchip TCP/IP stack we encounter the following code: while(1) { AppConfig.MyIPAddr.Val = MY_DEFAULT_IP_ADDR_BYTE1 | MY_DEFAULT_IP_ADDR_BYTE2<<8ul | MY_DEFAULT_IP_ADDR_BYTE3<<16ul |[详细]
2023-04-06 10:31 分类:问答Why doesn't MOVWF affect the status register?
I\'m learning assembly, and it seems that MOVF f,d can be moved f to f, but the zero flag in the status register will be set, meaning it\'s useful to check if f is zero. Why doesn\'t MOVWF a开发者_开发[详细]
2023-04-05 17:39 分类:问答4-20ma current loop pressure sensor, -1mbar to 1 mbar value, ? assembly code user
im programming a pic 18f to rad an press sensor, swings from +1mbar to -1mbar (4-2-ma) All ok at this point re code, now in need to shift my 8 bits to a more readable format.[详细]
2023-04-04 01:33 分类:问答Compiler warnings with SDCC
Using SDCC 3.0.0. Compiling this code #include <pic16f84.h> void main(void) { TRISA0=0; RA0=1; } and receive these warnings.[详细]
2023-03-31 16:20 分类:问答How do I get a function to be compiled at address 04 with GPLINK? (For PIC16)
I have a function which is meant to catch all the interrupt calls that will happen, But I cannot get any function to start at address 04.[详细]
2023-03-30 21:37 分类:问答How do I get an hex file generated by SDCC to be simulated in Pic Simulator IDE?
I have been searching workarounds for many days with no luck. PIC Simulator keeps telling me that the checksum of the hex file is wrong.[详细]
2023-03-30 09:08 分类:问答how to do interrupt service routine in pic18
#include<p18f452.inc> TIMER set 0x00 COUNT1 set 0x01 COUNT2 set 0x02 org 0x00 goto start org 0x08 goto int_1[详细]
2023-03-26 16:30 分类:问答