I'm new to flowcode and embedded softawre, but working with the demo FC8 on a PWM boost converter to see how it compares to descrete circuit.
I'm importing the C project into Tina, which works in most respects, but I'm struggling to get a voltage feedback input to to PIC with any acuracy.
I tried the ADC with a slider, but even in Flowcode 8 simulation it only seems to give a resolution to the nearest volt out of 5V.
I have tried using an 8 bit byte from the slider, macro which gives nice resolution in Flowcode simulation, but that does not seem to work in Tina; I'm not sure if/how the input of a PIC (16f88 in my case) converts a voltage to a byte?
Any help advising what I am doing wrong or best way to acheive moderately accurate ADC is welcome please?
Solved - Read on another post with similar issues that an oscillator is needed, so when I found and changed the configuration setting to internal the ADC started working as expected.
8 bit ADC Voltage measurement? (Solved)
For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.
Moderator: Benj
Jump to
- Announcements
- ↳ Announcements
- The Knowledge Exchange
- ↳ Programming Tips & Tricks
- ↳ Freelance Embedded Engineers
- ↳ Article Discussion
- Microcontroller Programming
- ↳ General Programming
- ↳ Flowcode V9
- ↳ Flowcode V8
- ↳ Feature Requests
- ↳ Bug Reports
- ↳ User Components
- ↳ Flowcode V7
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Fixed bugs
- ↳ 8-Bit PIC
- ↳ 16-Bit PIC
- ↳ 32-Bit PIC
- ↳ AVR & Arduino
- ↳ 32-Bit ARM
- ↳ Poll Discussion
- ↳ Flowcode V6
- ↳ Flowcode v6 Beta
- ↳ Bug reports
- ↳ Getting Started
- ↳ User Components
- ↳ Feature requests
- ↳ Bug reports
- ↳ Flowcode V5
- ↳ Flowcode V5 Issues
- ↳ Flowcode V5 Suggestions
- ↳ Flowcode V5 Free Edition
- ↳ Flowcode V4
- ↳ Flowcode 4 Bugs
- ↳ Flowcode 4 Suggestions
- ↳ Flowcode V2 & V3
- ↳ General / Misc
- ↳ Components (Comms)
- ↳ Components (Other)
- ↳ Bugs / Application Errors
- ↳ Suggestions
- ↳ BTEC Unit 6
- ↳ C and ASM Programming
- ↳ E-blocks
- ↳ Formula AllCode
- ↳ Formula Flowcode
- ↳ MIAC
- Language Support Forums
- ↳ Deutsch Support-Forum
- ↳ Forums d'aide en français
- ↳ Foro de soporte español
- Other Matrix products
- ↳ Electronics products
- ↳ Matrix Online Courses
- ↳ Other products
- ↳ CoCo
- Hidden