I want that ONE PWM pin shall provide four aviation instruments.
What instruments ?
Why do you want this ?
As you mentioned PWM value up to 255 and 5V.
If you want "0-63", you need to write code that sends "0", increments by some value, waits some designated period of time, and so forth until it reaches the value of 63.
#2, 64-127
If you want "64-127", you need to write code that sends "64", increments by some value waits some designated period of time, and so forth until it reaches the value of 127.
#3 128-191,,
If you want "128-191", you need to write code that sends "128", increments by some value and so forth until it reaches the value of 191.
#4 192-255.
If you want "192-255", you need to write code that sends "192", increments by some value waits some designated period of time, and so forth until it reaches the value of 255.
If I want to update one of three remained gauges, then the first turn suddendly off but at the other end, it has an small microcontroller that has just 1x analog input and one PWM to provide constant speed in the servo motor.
I have no idea what you are trying to say here.
Such as this: http://no.rs-online.com/web/p/microcontrollers/7559408/
HELLO !
This is an arduino forum, NOT A PIC FORUM !
To have levels in one PWM output
(see above)
A PWM can only have ONE duty cycle at any given moment. period.
and 4 analog input #1 level has one diode connected to avoid too much current to the analog input and something that prevent the analog input to read lower value so it will receive no electric current.
No idea what you are saying here.
When it turn to another level, it prompt turned off completely before send a new PWM value suddently.
No idea what you are saying here.
As Grumpy_Mike said that is difficult to achieve tight tolerance limit with such configuration. Hmmm...Maybe still possible if having something item that can such as potentiometer that avoid wearing error in time elapsing.
Nonsense
As I mentioned, I want to having an external circuit that read bit 0 but still has low electric currency.
Are you using Google Translate ? There is no such thing as "electric currency" . What is that , some kind of electric money ?
For example, let us say we have 2 bits.
00 = demultiplexer pin #1
01 = #2 pin to connect to the correct equiment.
10 = #3
11 = #4, the power source that provide the pins in this demultiplexer is NEVER completely off.
No idea what you are saying here.
When I using this configuration, the pins in microcontroller are always dedicated to this demultiplexer
.
Ok , I understand that. So what ?
I want more logic flip flop with this configuration than using 2x 4:16 demultiplexer in 8 pins, I want to using 4 pins as 4^4 because the external circuit breadboard has ALWAYS electric current wandering.
What are you trying to say ? (you want more I/O ?) Maybe you should use an arduino instead of a PIC.
But also possible to turn this electric circuit off thus I cannot write value to logic flip flops. If I building that, then 4 bits in PORT is available for other purposes!
What ?
Several levels of analog input from one PWM and another question.
Are you aware that PWM is NOT an analog input ?
You are asking for a bow that shoots bullets or a gun that fires arrows.
PWM & analog input
same as apples and oranges.
It is possible to convert PWM to analog but not the other way around (now directly anyway).
What do you want ?
PWM ?
OR
ANALOG INPUT ?
WHICH ? (they are not the same)
It sounds like you are describing a DAC application.