• ### 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
• # LED Display

### Scrolling thermometer

by Published on - 2nd November 2011 00:08     Number of Views: 4636

Using 16F628A, DS18B20 and 7x7 LED matrix (home-made) I made this scrolling-thermometer, based on code wrote by Mr.Wellyboot. ...

### Silly little LED flasher

by Published on - 2nd September 2011 09:54

I don't know why anyone else might need this, but who knows?

I needed a warning LED to light up when there ...

...

### Displaying Videos and Images on 4Dsystems uOLED Serially

by Published on - 14th December 2010 09:15  Number of Views: 6987

I have to start by saying that those guys at 4Dsystems really know what they are doing. they have made it very easy to display ...

### LED bar graph with selectable range min and max

by Published on - 23rd October 2010 17:10  Number of Views: 4981

Click image for larger version.

Code:
```DEFINE OSC 4
;----[USART Settings]-------------------------------------------------------```
...

### 144 LED Games Console Project

by
Art
Published on - 26th June 2010 13:49  Number of Views: 10951

144 LED Game Console
Featuring original recoded clones of two classic games: Snake and Tetris!

...

### MIBAM - (Mirror Imaged Bit Angle Modulation)

by Published on - 18th June 2010 01:04  Number of Views: 3627

MIBAM (pronounced "My BAM")
Which stands for ... "Mirror Imaged Bit Angle Modulation"
...