Search found 1091 matches

by pbreed
Tue Mar 03, 2009 1:31 pm
Forum: NetBurner Software
Topic: OpenSerial for COM2 clobbers J2 pin functions?
Replies: 1
Views: 3782

Re: OpenSerial for COM2 clobbers J2 pin functions?

In nburn\mod5282\system\serial.cpp
there are #ifdef to move the third serial port pin.

#defiine THIRD_ON_CAN (1)
at the begining of this file to change the default pin assignment.


Paul
by pbreed
Mon Feb 23, 2009 12:35 pm
Forum: NetBurner Software
Topic: Sending enums as messages in a uCos OSQue
Replies: 6
Views: 10257

Re: Sending enums as messages in a uCos OSQue

void * is the compiler way of saying I'm reserving a 32 bit block of stuff, I have no idea what you are going to put in there.


So with proper casting any int or enum can be conveted to/from a void *.

enum an_enum {A,B,C};

void * pV;
an_enum x;

x=A;

//Cast to void *
pV=(void *)x;

//Cast back ...
by pbreed
Mon Feb 23, 2009 9:49 am
Forum: NetBurner Hardware
Topic: PK70 Robot blade board.
Replies: 0
Views: 4397

PK70 Robot blade board.

For my own use I've built a PK70 blade board with the following:

16 Channels of 12 bit A/D using 2 of the MAX197 A/D

4 optically isolated power switches the switches are rated to 30V 6A,
but the trace size and connector pin capacity would likely limit this to 1A

8 non isolated Digtal I/O ...
by pbreed
Wed Feb 18, 2009 3:13 pm
Forum: NetBurner Hardware
Topic: Netburner Data Input using 4 - 20 ma Interface
Replies: 3
Views: 6988

Re: Netburner Data Input using 4 - 20 ma Interface

It may not be clear to all , but the 4-20ma is an analog standard,
its not a communications standard.

Its just like a 0.5 to 5V analgo voltage only its a current.
IE the sensor varies from 4 to 20ma of current from 0 to full scale.

The advantages are:
Just two wires.
Any resistance in the ...
by pbreed
Wed Feb 18, 2009 9:58 am
Forum: NetBurner Hardware
Topic: Netburner Data Input using 4 - 20 ma Interface
Replies: 3
Views: 6988

Re: Netburner Data Input using 4 - 20 ma Interface

For the MOD5282 I just put a precision 165 ohm resistor.
This gives you 3.3V at 20Ma.

For the MOD5213 or PK70 A/D boards the same concept works.
Just put a precision resistor between the negative end of teh 4-40 and ground.
Apply a voltage (usually 12 or 15V) to the positive end.
If you think the ...
by pbreed
Tue Jan 27, 2009 10:29 am
Forum: NetBurner Software
Topic: How to handle interrupt when Client-Server (TCP/IP) running?
Replies: 3
Views: 6591

Re: How to handle interrupt when Client-Server (TCP/IP) running?

You are not allowed to do ANY network or serial I/O in an interrupt.
The best way to do this is to create a task that waits forever on a Semaphore and
have the interrupt release the task by posting to a semaphore.


Paul

static OS_SEM SemISR;


//The task to run and wait forever
void ISR ...
by pbreed
Tue Jan 27, 2009 10:20 am
Forum: NetBurner Software
Topic: Python Find
Replies: 0
Views: 4438

Python Find

In the Nbrun/pctools/find directory there is a simple little 'C' utility that finds all the netburners
on th elocal network. My Son has been playing with Python and really likes the language for
traditional Web apps. So I decided to look at it for educational purposes.
My first useful program was a ...
by pbreed
Fri Dec 19, 2008 9:31 am
Forum: NetBurner Software
Topic: backtrace
Replies: 1
Views: 4164

Re: backtrace

Take a look at the smart trap code.

nburn\system\smarttrap

It only works in release mode, but it provides stack traces for all tasks on a fault.

PAul
by pbreed
Wed Dec 17, 2008 10:52 am
Forum: NetBurner Hardware
Topic: MOD5474 / MOD5484 status ?
Replies: 2
Views: 5425

Re: MOD5474 / MOD5484 status ?

The good news:
I have a 100% functional MOD5474 with 64M bytes of 32 bit wide SDRAM running at 133Mhz
16Mbytes flash, and a Cpu running at 266Mhz
It's 100% functional on my desk. The design is 100% done, all issues resolved, ready for a beta that will never come.

The really bad news:
Freescale so ...