• ### Recent Forum Posts

#### Re: Calculate tuning value for the AD9850 DDS.

Here it is. It wasn't tested...

ftw var long ; unsigned long ftw; // 32-bit Frequency Tuning Word
f var long

;/************************************************************************
;...

pedja089 Yesterday, 23:33

#### Re: Confused by Arraywrite

mikes quote here is very wrong

from the manual

the inflexible way

richard Yesterday, 23:15

for control = 0 to 15
LATB.4=Control.0
LATB.5=Control.1
LATB.6=Control.2
LATB.7=Control.3
next control

pedja089 Yesterday, 22:20

Yes thanks, but how to step through the options in the most efficient way without disturbing ports B0-3

retepsnikrep Yesterday, 21:26

#### Re: Calculate tuning value for the AD9850 DDS.

Yes, in XC8 that's how you would address the "local" variables (c, f, and n) using assembly language.

Mike, K8LH Yesterday, 21:10

#### Re: Confused by Arraywrite

The ARRAYWRITE command prepends the LOOKUP or LOOKDOWN commands.

b0 VAR BYTE
b1 VAR BYTE
Letter VAR BYTE[9]
ARRAYWRITE Letter, ["SOMETHING"]
FOR b0 = 0 TO 8
LOOKUP b0, [Letter], b1

mpgmike Yesterday, 18:14

#### Confused by Arraywrite

I've looked at the examples and posts on here and they are helpful but.....

OK I have a 38x25 display.
I can talk to it using hserout and have a 1ms interrupt running so want to send it 1...

retepsnikrep Yesterday, 15:52

#### Re: Calculate tuning value for the AD9850 DDS.

Mike,
It can be almost copy/paste in PBP. I can try to sort details to work in PBP. But I don't understand what is calcFTW@c,@f,@n... Is it just variables declared in function?
Can you explain?

pedja089 Yesterday, 09:12

If you are using PIC 18F, then use simplest solution is
LATB.4=Control.0
LATB.5=Control.1
LATB.6=Control.2
LATB.7=Control.3

EDIT:
For PIC16

PortBCopy var byte

pedja089 Yesterday, 09:01

I have a HTC4067 16x1 multiplexer, it's controlled by four lines S0, S1, S2, S3
I have these all connected to Port B pins 4,5,6,7 respectively on my pic. This could be reversed to 7,6,5,4 if that...

retepsnikrep Yesterday, 08:24
• # BigPIC4 Dev Board

### Forum Community Competition - Winner gets a BigPic4 development board

by Published on - 23rd January 2011 14:06  Number of Views: 10278

Although it was really neck and neck for a while, the winner is Pimentel, with a POV clock design. Great job everyone who ...

### POV Clock by Pimentel

by Published on - 27th February 2011 21:52  Number of Views: 5698

Hello, my name is Rogério Corrêa Pimentel, I live in Brasil , In São Paulo state, Campinas city and I would like very much ...

### Automatic Digital Camera Photography Device

by Published on - 27th February 2011 17:04  Number of Views: 3817

Automatic Digital Camera Photography Device

Introduction:

The aim of this project was two fold: ...

### How to build an Ultrasonic Ranger circuit

by Published on - 27th February 2011 03:51  Number of Views: 4804

I am pleased to submit this article as an entry in the current Forum Competition. I also hope that someone who might be ...

### How to use the HLVD module as a low voltage monitor

by Published on - 27th February 2011 03:50  Number of Views: 7947