Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Begginer dspic30f Questions

Posted by leviatan1 on May 10, 2014

Hello, im beggining with FreeRTOS, and i want to put data in a port, lets say blink a led, i cant understand how to set port data with a task, i would like some examples i tried to understand the demos but i couldnt, can you help me? how to blink a led?

the second question is, if i set the configuration bits with a tx x8pll should i delete something in the freeRTOS source files? cause i set the config bits in the mplab ide. please explain like im a total begginer because i am. thanks everyone who can help


Begginer dspic30f Questions

Posted by davedoors on May 10, 2014

i cant understand how to set port data with a task

There are lots of examples of flashing LEDs. In its simplest form

void flashtask( void *x ) { while(1){ vTaskDelay(100); toggleled(); } }

toggle_led() is the function you write to write to the port.

the second question is

As I remember you can set bits in the source code or in the MPLAB project, but not both. If the project defines the bits in the source code and you want to set them in the project then I guess you will have to delete something. Read the documentation for MPLAB.


Begginer dspic30f Questions

Posted by leviatan1 on May 10, 2014

FreeRTOS does not set anything for the cpu clock? i mean if i don't do it, the FreeRTOS source code does not set anything that has to do with config bits?

I was asking about the toggle_led function in your example, how do i set a bit in a port? using Assembler? should i create a *.h file?


Begginer dspic30f Questions

Posted by richard_damon on May 10, 2014

FreeRTOS does not do anything to "setup" your basic processor, except for those things that it exclusively uses. It will configure the tick timer and related interrupt.

You need to configure the rest of the processor in the manner that you need.

If you are not familiar with the processor, I would suggest that you look at the basic Microchip provided examples to understand how the processor works, and how to write code for it.


Begginer dspic30f Questions

Posted by tlafleur on May 11, 2014

Prior to starting with an RTOS, you should understand the basics of the processor your using.... Read the data sheet for the part, understand how I/O works and start learning about all of the peripheral devices on the part...

Then its time to explore RTOS...

here is a good place to start..

http://www.engscope.com/pic24-tutorial/

Two great books on the PIC24/dsPIC:

Microcontrollers: From Assembly Language to C Using the PIC24 Family <--- great book, New edition do any time now http://www.reesemicro.com/

http://blog.flyingpic24.com/programming-16-bit/ <--- 2nd best

http://www.amazon.com/Beginners-Guide-Programming-PIC24-dsPIC33/dp/1468152637/ref=sr13?ie=UTF8&qid=1399777879&sr=8-3&keywords=reese++pic24

On Sat, May 10, 2014 at 4:15 PM, Richard Damon richard_damon@users.sf.netwrote:

FreeRTOS does not do anything to "setup" your basic processor, except for those things that it exclusively uses. It will configure the tick timer and related interrupt.

You need to configure the rest of the processor in the manner that you need.

If you are not familiar with the processor, I would suggest that you look at the basic Microchip provided examples to understand how the processor

works, and how to write code for it.

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~

Tom Lafleur (858) 759-9692


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists