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

### FineLineIDE

by Published on - 5th January 2011 13:45     Number of Views: 4567

Features include:
Bracket lines linking If-Endif, For-Next etc.
Tabbed explorer so that the current ...

by Published on - 16th October 2010 20:10  Number of Views: 2809

### New PIC12F1822 in stock for samples

by Published on - 12th September 2010 16:12  Number of Views: 6423

Another thing is it took me a while to get the adc to work, and then sometimes it wouldn't. It would sometimes hang waiting ...

### CodeSize - Update

by Published on - 28th May 2010 15:19  Number of Views: 2598

Version 2.0

This include file adds several more abilities to the idea in post#1. &nbsp; MPASM Required ...

### New PIC Utility. PICMultiCalc

by Published on - 21st May 2010 14:37  Number of Views: 4246

Hi all,
Few times ago i did this little utility to help in Timer, Usart, Eusart and PWM calc. It have been ...

### Microchip Product Selector Tool

by Published on - 24th April 2010 16:53  Number of Views: 5584

Here is the new MAPS from Microchip. It makes it a little easier to select a device for your next project. Just adjust the ...