Continue to Site

Welcome to EDAboard.com

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.

Mikroc file compiling problem

Status
Not open for further replies.

sribangaram

Full Member level 5
Full Member level 5
Joined
Apr 29, 2012
Messages
297
Helped
7
Reputation
14
Reaction score
7
Trophy points
1,298
Location
INDIA.:/;:'" VIJAYAWADA
Activity points
3,754
Dear Friends I need to compile from Mikroc 18f file to Mikroc 16f I am try to change but I am getting so many errors Please help me.....
 

Attachments

  • EasyPIC v7 - PIC18F45K22.rar
    72.7 KB · Views: 62

You didn't tell us which PIC16 you are trying to convert to.

As a general rule, you need to find all references to register names that only exist on PIC18 devices and convert them to equivalents in a PIC16 device. For example, there are no LAT registers on PIC16. Also bear in mind that PIC16 may need more clock cycles to execute some instructions so anything critical of speed may need to be rewritten.

Brian.
 

Friend thanks to your reply Actually I am try to compile PIC16F628A & 20 MHz crystal but i con't
Actually I need 4 INPUT'S & 2 OUTPUT'S don't need to ADC
 

First, change the project setting which MCU and oscilltor that you want to use. In PIC16, not have LAT, all of peripheral ports are PORT. You also check the relative pin between PIC16F628A and PIC18F45K22.
 

Friend i have to change and compile my self Completion is success full but hard ware is not working Please tell me ware I am mistake
 

Attachments

  • EasyPIC v7 - PIC16F628A.rar
    51.2 KB · Views: 63

Showing us your program and telling us the hardware doesn't work is pointless.

Please show us the schematic with the new PIC so we can investigate.

Brian.
 

Don't forget there may be memory paging issues on the 16F series.
 

Friend Actually i need "4 Digital In put's and 2 Digital out put's" when fail the INPUT then send to SMS Through stored number and 2 Digital out put's are operating Message through reference mobile number
 

Try to deal with one issue at a time, focusing in one, and just after solved, go to the other.

Moreover, you have to take a time to elaborate your questions, being clear on your requests, otherwise the thread become messy:

  • what should happen, or what is the current problem ?
  • which problems previously reported were already fixed ?

It is not clear if you now want to change the original project.
If yes, would be expected a draft of what you mean.
 

Showing us your program and telling us the hardware doesn't work is pointless.

Please show us the schematic with the new PIC so we can investigate.

Brian.

Friend Actually Problem is when I have to connect Hardware and GSM modem through hyper terminal PIC is giving first command "AT" Modem will reply to "OK" and again also giving "AT" Modem Reply's "OK" and again again again Didn't giving the next commend ware is my mistake Please tell me .......... I think UART READ section is problem I am right?
 

Taking a general look at the attached program, it was not possible to realize at first sight some glaring error. You should now debug the code, and the most common way is to use some extra pin uC there to signal (via LED for example) passing through potentials parts of program, candidates to cause of failure. This task is meticulous and repetitive, and depends only on you.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top