Quantcast
Channel: MEL PICBASIC Forum
Viewing all articles
Browse latest Browse all 4745

Is it possible to feed PBP variable data into ASM code fragment?

$
0
0
I need to control built in HPWM of PIC16F1825 with PBP. The problem is, that HPWM statement on each execution, stops and restarts HPWM module, which is not desirable. If I issue ASM statement, I can change HPWM generator frequency, without stopping it. But the problem is, that I can't feed required frequency from PBM to ASM code insert into it. So maybe it is possible to locate somehow variable data storage address in PBP, and read it using ASM code, so I can control HPWM as I want?

Viewing all articles
Browse latest Browse all 4745

Trending Articles