You CANNOT use resistor for regulating voltage of a digital circuit. If I understand it correctly you are trying to do so.