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.

Serial communication between pic, pc & eeprom

Status
Not open for further replies.

King-Pago

Newbie level 3
Joined
Feb 22, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
Hi,

I'm completely new to microcontrollers(3rd year, electrial engineering) and I've been given a practical that I am meant to demonstrate in the labs late March.I've tried to attach the contents of it with this post (I hope anyone interested can access it).

Since this device is utterly new to me, I'm trying to see if I can break this prac. into several parts. Figure out how to do a portion of it, hardcode it, build it on a small scale (even if it is utterly unrelated to what is required - I just need to grasp the technique required for me to do that part in the prac).

What I'm currently struggling and trying to figure out how to establish a communication between the PC and my PIC only, and how to define specifically strings in the source code of the MPLAB software and have them appear on the PC. None of the other stuff.We're using PIC18F45K20. From the little that I've grasped from the reams of data on the internet(which I can't put to a coherent structure), I can use a USB-serial port cable between my breadboard and the PC, and hyperterminal software.

my questions are these (note; we're using assembly language for programming, not C, i realise you can use C)

1. what is the process for having strings stored in the PIC ( can anyone please refer to any text that uses assembly language for this task)
2. can any one please refer me to any text or site that would explain this step
by step and explain their procedures, because most of the data I've come across seems to be for people already knowledgeable in this.

I would really appreciate your help...and thanx in advance.
 

Attachments

  • PRAC_2a.pdf
    72 KB · Views: 108
Last edited:

Hi,

There is no direct instructions to handle Multi-byte variables (like strings) in MPLAB assembly. There are some other way to tackle it.

If you want to store constant-strings in PIC, use ROM. You can use Table read/write method. Check PIC datasheet and see following link,
**broken link removed**

If you want variable string, use RAM. Check following link for description
**broken link removed**

Thanks
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top