I am new in DSP. I worked in Microchips MPLAB. There i ca...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I am new in DSP. I worked in Microchips MPLAB. There i ca...

3,561 Views
Ranjicgnr
Contributor I
I am new in DSP. I worked in Microchips MPLAB. There i can access Secial function Registers like PORTS, TIMER Registers Everything in my C programm directly. Because it have a headder file which will map the Name of the registers to its corresponding address. Can i use the DSP special function registers directly in my C programm.
Eg: in MPLAB i can use        PORTB = 0x06;  for writing the data to the port pin. Can i use the code like this in code warrior.. 
Labels (1)
Tags (1)
0 Kudos
5 Replies

541 Views
Ranjicgnr
Contributor I
Thanks for your replay.
 
 i have some more doubts.
How I can add The headder file. Where is the head file located. And can add the headder file with out using processor expert. Means can a add that headder when i am making the project as only C. With out including PESL or Beans. I am using 56F8013.
0 Kudos

541 Views
J2MEJediMaster
Specialist I
The CodeWarrior tools come with some example programs that include the headers. You can also use a Project Wizard to create a new project with your choice of processor and possible target board. The Wizard asks you a few questions, and generates a collection of files with a simple program, along with the required header files and libraries. You can then modify the sample program to add your own code, and there is an add file mechanism in the GUI-based IDE that allows you to add your own source code to the project's build process.

I'd recommend that you go the the CodeWarrior Development Tools Learning Center and investigate the capabilities of the tools.

---Tom
0 Kudos

541 Views
Ranjicgnr
Contributor I
Thank you very much.
I find out the 56F800X.h headder file in one of the example project. And another one thing is one IO_Map.h is included in the project when i am creating th project with Prossesor Expert. In that almost all the pheripheral registers are defined. Is that the header you mentioned.
0 Kudos

541 Views
J2MEJediMaster
Specialist I
Yes. Processor Expert can also help you set up on-chip device initialization as well.

---Tom

0 Kudos

541 Views
J2MEJediMaster
Specialist I
Yes. The CodeWarrior tools include header files that let you access the hardware registers directly for on-chip peripherals.

---Tom
0 Kudos