Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
malloc() mcc18
i have copy the stdlib.h under the project file.but it doesn't work;
some error as follow
The target "D:\picc\PIC18\fgh.obj" is already up to date.
Executing: "C:\HTSOFT\PIC18\BIN\PICC18.EXE" -E"2.lde" "D:\picc\PIC18\fgh.obj" -M"2.map" -O"2.cof" -O"2.hex" -Q -MPLAB -18F248...
hi-tech malloc
thank you very much.
i ve also tested my code with picc and picc18,but i doesn't work.are you picc18 is a demo? where have you downloaded?
pic malloc
I have writed a simple program like this:
/* ******************************* */
#include<stdlib.h>
void main(void)
{
unsigned char *ptr;
ptr = (unsigned char *) malloc(sizeof(unsigned char));
free(ptr);
}
/* ***************************** */
This just used to test how to use...
chip:PIC16F877
My question is that:
My program runs in the MPLAB simulator, but when I programmed the chip it did not work at all.
My disposition character is as follows:
watchdog timer : off
power up timer: off
brown out detect: off
low voltage program : off
who can help me?
thank...
My problem as follow.and i emluator in ICD2, the progam can send out the data. but it can't receive any data, and it can run into the interrupt.
what's wrong?
thank you!
void init_com()
{
SPBRG = 0x23;
TXSTA = 0x04;
RCSTA = 0x90;
TRISC = 0x80;
INTCON |= 0xc0;
PIE1 |= 0x20...
spi_init pic 16f877
hi,
pic16f877 has an inner spi, but i want to simulate to communicate EEPROM 93LC46B(64 *16bit not the same as 93lc46A).my code as follow.but it don't out the data. what's the matter?
thank you.
//--------------------------------------
PIC chip and 93LC46B...
fixup overflow picc
hi,i am kerden.
thank you for answered my question.
i could share the Internet until the day before yesterday.
so i haven't seen you reply about my quesetion.i am so sorry for that.
today i have ckecked in you project.and still have a question:
when i include the...
Re: A magical problem!!!!
i have done.
because it isn't every function doen't work when download to chip besides some.
so it dosn't hardware problem.
Added after 46 minutes:
#include"pic.h"
#define uchar unsigned char
#define uint unsigned int
#define Some_nop(); NOP(); NOP(); NOP()...
A magical problem!!!!
hi:
I have edited a project using MCU of PIC16F877A.
it can work well on emluator ICD 1,but when i download on the chip it couldn't
work?
why ???
thank you!
function not made in the presence of a prototype
i think there isn't any solecism because the error at the [000] address. so it
must be a address overflow. and i have to cut any function to prove where the
error making .as follows:
so i have to cut down any big function "bit...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.